-
Notifications
You must be signed in to change notification settings - Fork 22
Add MSSQL DB client #37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
8e8537a
to
2e93ada
Compare
295a9ff
to
2e93ada
Compare
3923b35
to
6710555
Compare
|
||
if (!validate(body)) throw badRequest(); | ||
|
||
res.setHeader("Content-Type", "text/plain"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't seem like the right content-type? I can't remember if there is a reason for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ping on this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6a2fdf0
to
721fc8b
Compare
This won't actually work for people unless the other PR with the UI changes is deployed, and that PR won't work until this is deployed. We could just merge this and tell people not to use it, or merge it and not make a new release for it until we merge the client, or just merge when the other PR is ready. |
Approved. This all looks good to me, but I think we should loop Visnu in on how best to merge it. |
|
||
if (!validate(body)) throw badRequest(); | ||
|
||
res.setHeader("Content-Type", "text/plain"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ping on this
Resolves Microsoft Server SQL DB client
Description
Adds a database client for MS SQL databases. The client is set up so it can be seamlessly imported in the data-connector project.
Besides the main client, it also adds the basic to write mocha integration-test and the
docker-compose
setup to run the test from alocal
environment andCI
.Review notes
The core of the changes can be found in the new
lib/mssql.js
file. It defines thecheck
andquery
method, andconnection pool
.The
routing
has been adjusted to match the one exposed indata-connector
.Tests
To run the test locally with
Docker
, runTest will:
mssql
instance, using theazure-sql-edge
docker imagetest_mssql.bak
backup file and create another read only userTo run the test as in
CI
withDocker
, runTest will:
mssql
instance, using theserver:2019-latest
docker imagetest_mssql.bak
backup file and create another read only userNOTE: The
ci
tests won't run on aMacBook PRO M1
environment. Run on aFedora Linux
distribution successfully.Risk
[If something goes wrong, how big of a problem is it? Consider only the impact, not the probability.]
[😅 Low - We'll need to add a PR to roll this back, but it won't cause problems for users]