Skip to content
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

Support for SQL server #4

Open
stormliucong opened this issue Jan 24, 2024 · 1 comment
Open

Support for SQL server #4

stormliucong opened this issue Jan 24, 2024 · 1 comment

Comments

@stormliucong
Copy link

Hey, thanks for the great product. Just wondering whether this can provide support for SQL server. We already have a OMOP CMD instance based on SQL server. We would like to build a FHIR server on top of it. But I tried the docker one. It seems like it did not support the SQL server only PostgreSQL now?

@myungchoi
Copy link
Contributor

I tested with Azure SQL server previously. And, it worked fine. Currently, this supports PostgreSQL, SQL server, and BigQuery. However, I haven't tested SQL and BigQuery after I changed the DB driver to POOL based library. For JDBC, we need to use appropriate driver for SQL server.

In environment, you need to set TARGETDATABASE="sql server". And, JDBC_DATASOURCENAME needs to be set to one that works for SQL Server. We are using Hikari for the database connection pool. If you google search, you may find what you need to use for the data source name.

If you set up JDBC_URL, JDBC_DATASOURCENAME, and TARGETDATABASE correctly, it should work. Username and Password passing via JDBC URL are tricky though. I loaded mssql driver for JDBC already. And, sqlRender transforms SQL to MS SQL. All should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants