stjude-biohackathon / KIDS23-Team3

SCCRIP (Sickle Cell Clinical Research and Intervention Program) established a longitudinal cohort at multiple sites with Sickle Cell Disease (SCD) in 2014 managed by St. Jude Clinical Hematology. A new collaborator for SCCRIP has longitudinal data for 600 SCD patients in OMOP CDM format and this effort is to convert OMOP CDM to SCCRIP format.
https://www.stjude.org/patient-referrals/seek-treatment/taking-part-in-clinical-research/sickle-cell-clinical-research-intervention-program-sccrip.html
MIT License
3 stars 0 forks source link

DatabaseConnector - PostgreSQL JDBC Driver #22

Open RaghaSrinivasan opened 8 months ago

RaghaSrinivasan commented 8 months ago

DatabaseConnector - This R package provides function for connecting to various DBMSs. Together with the SqlRender package, the main goal of DatabaseConnector is to provide a uniform interface across database platforms: the same code should run and produce equivalent results, regardless of the database back end.

https://github.com/ohdsi/DatabaseConnector?tab=readme-ov-file

STEP 4 (Optionally) To use Windows Authentication for SQL Server, download the authentication DDL file as described https://ohdsi.github.io/DatabaseConnector/articles/Connecting.html#obtaining-drivers

library(DatabaseConnector) downloadJdbcDrivers("postgresql")

conn <- connect(dbms = "postgresql", connectionString = "jdbc:postgresql://localhost:5432/postgres", user = "ohdsi_admin_user", password = "123456X")

PostgreSQL JDBC Driver https://github.com/pgjdbc/pgjdbc

need to debug this

querySql(conn, "SELECT TOP 3 * FROM person")

https://ohdsi.github.io/DatabaseConnector/reference/connect.html#windows-authentication-for-sql-server-1

User Documentation Documentation can be found on the package website.

PDF versions of the documentation are also available:

Vignette: Connecting to a database Vignette: Querying a database Vignette: Using DatabaseConnector through DBI and dbplyr Package manual: DatabaseConnector manual Support Developer questions/comments/feedback: OHDSI Forum We use the GitHub issue tracker for all bugs/issues/enhancements