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

DatabaseConnector - PostgreSQL JDBC Driver #22

Open
RaghaSrinivasan opened this issue Mar 6, 2024 · 0 comments
Open

DatabaseConnector - PostgreSQL JDBC Driver #22

RaghaSrinivasan opened this issue Mar 6, 2024 · 0 comments

Comments

@RaghaSrinivasan
Copy link

RaghaSrinivasan commented Mar 6, 2024

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

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

1 participant