{"id":14067706,"url":"https://github.com/OHDSI/DatabaseConnector","last_synced_at":"2025-07-30T02:31:09.099Z","repository":{"id":15658453,"uuid":"18395839","full_name":"OHDSI/DatabaseConnector","owner":"OHDSI","description":"An R package for connecting to databases using JDBC.","archived":false,"fork":false,"pushed_at":"2025-07-21T12:42:53.000Z","size":108363,"stargazers_count":56,"open_issues_count":29,"forks_count":89,"subscribers_count":48,"default_branch":"main","last_synced_at":"2025-07-21T13:18:28.824Z","etag":null,"topics":["hades"],"latest_commit_sha":null,"homepage":"http://ohdsi.github.io/DatabaseConnector/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OHDSI.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-04-03T08:18:32.000Z","updated_at":"2025-07-04T13:07:00.000Z","dependencies_parsed_at":"2023-11-13T07:26:46.004Z","dependency_job_id":"c05fbb97-6bd0-4599-bdb7-4f46c5b4d01b","html_url":"https://github.com/OHDSI/DatabaseConnector","commit_stats":{"total_commits":649,"total_committers":36,"mean_commits":18.02777777777778,"dds":0.5839753466872111,"last_synced_commit":"5867bc151cda2dcf30a682b23eb0afa1997f9abd"},"previous_names":[],"tags_count":34,"template":false,"template_full_name":null,"purl":"pkg:github/OHDSI/DatabaseConnector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OHDSI%2FDatabaseConnector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OHDSI%2FDatabaseConnector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OHDSI%2FDatabaseConnector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OHDSI%2FDatabaseConnector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OHDSI","download_url":"https://codeload.github.com/OHDSI/DatabaseConnector/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OHDSI%2FDatabaseConnector/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267377711,"owners_count":24077604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hades"],"created_at":"2024-08-13T07:05:44.200Z","updated_at":"2025-07-30T02:31:09.067Z","avatar_url":"https://github.com/OHDSI.png","language":"R","funding_links":[],"categories":["HADES R Packages","R"],"sub_categories":["Database Connectivity"],"readme":"DatabaseConnector\n=================\n\n[![Build Status](https://github.com/OHDSI/DatabaseConnector/workflows/R-CMD-check/badge.svg)](https://github.com/OHDSI/DatabaseConnector/actions?query=workflow%3AR-CMD-check)\n[![codecov.io](https://codecov.io/github/OHDSI/DatabaseConnector/coverage.svg?branch=main)](https://app.codecov.io/github/OHDSI/DatabaseConnector?branch=mai)\n[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/DatabaseConnector)](https://cran.r-project.org/package=DatabaseConnector)\n[![CRAN_Status_Badge](https://cranlogs.r-pkg.org/badges/DatabaseConnector)](https://cran.r-project.org/package=DatabaseConnector)\n\nDatabaseConnector is part of [HADES](https://ohdsi.github.io/Hades/).\n\n\nIntroduction\n============\n\nThis 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.\n\nFeatures\n========\n- Create connections to the various database platforms:\n  - MicrosoftSQL Server\n  - Oracle\n  - PostgresSql\n  - Microsoft Parallel Data Warehouse (a.k.a. Analytics Platform System)\n  - Amazon Redshift\n  - Apache Impala\n  - Google BigQuery\n  - IBM Netezza\n  - SQLite\n  - Spark\n  - InterSystems IRIS\n- Statements for executing queries with \n  - Error reporting to file\n  - Progress reporting\n  - Multiple statements per query\n- Support for fetching data to Andromeda objects\n- Insert data frame to a database table\n- Supports the `DBI` interface, with SQL statements automatically translated to the appropriate dialect.\n- Supports the `dbplyr` interface.\n- Integrates with RStudio's Connections tab\n\n\nExamples\n========\n\n```r\nconnectionDetails \u003c- createConnectionDetails(dbms=\"postgresql\", \n                                             server=\"localhost\",\n                                             user=\"root\",\n                                             password=\"blah\")\nconn \u003c- connect(connectionDetails)\nquerySql(conn,\"SELECT COUNT(*) FROM person\")\ndisconnect(conn)\n```\n\n\nTechnology\n============\n\nDatabaseConnector is an R package using Java's JDBC drivers and other DBI drivers. \n\n\nSystem Requirements\n===================\n\nRunning the package requires R with the package rJava installed. Also requires Java 1.8 or higher.\n\n\nInstallation\n============\n\n1. See the instructions [here](https://ohdsi.github.io/Hades/rSetup.html) for configuring your R environment, including Java.\n\n2. To install the latest stable version, install from CRAN:\n\n```r\ninstall.packages(\"DatabaseConnector\")\n```\n\n3. Download the database drivers as described [here](http://ohdsi.github.io/DatabaseConnector/articles/Connecting.html#obtaining-drivers).\n\n4. (Optionally) To use Windows Authentication for SQL Server, download the authentication DDL file as described  [here](http://ohdsi.github.io/DatabaseConnector/reference/connect.html#windows-authentication-for-sql-server-1).\n\nUser Documentation\n==================\nDocumentation can be found on the [package website](https://ohdsi.github.io/DatabaseConnector/).\n\nPDF versions of the documentation are also available:\n\n* Vignette: [Connecting to a database](https://github.com/OHDSI/DatabaseConnector/raw/main/inst/doc/Connecting.pdf)\n* Vignette: [Querying a database](https://github.com/OHDSI/DatabaseConnector/raw/main/inst/doc/Querying.pdf)\n* Vignette: [Using DatabaseConnector through DBI and dbplyr](https://github.com/OHDSI/DatabaseConnector/raw/main/inst/doc/DbiAndDbplyr.pdf)\n* Package manual: [DatabaseConnector manual](https://raw.githubusercontent.com/OHDSI/DatabaseConnector/main/extras/DatabaseConnector.pdf) \n\n\nSupport\n=======\n\n* Developer questions/comments/feedback: \u003ca href=\"http://forums.ohdsi.org/c/developers\"\u003eOHDSI Forum\u003c/a\u003e\n* We use the \u003ca href=\"https://github.com/OHDSI/DatabaseConnector/issues\"\u003eGitHub issue tracker\u003c/a\u003e for all bugs/issues/enhancements\n\n\nContributing\n============\n\nRead [here](https://ohdsi.github.io/Hades/contribute.html) how you can contribute to this package.\n\n\nLicense\n=======\n\nDatabaseConnector is licensed under Apache License 2.0. The JDBC drivers [fall under their own respective licenses](https://raw.githubusercontent.com/OHDSI/DatabaseConnector/main/inst/COPYRIGHTS).\n\n\nDevelopment\n===========\n\nDatabaseConnector is being developed in R Studio.\n\n\n### Development status\n\nStable. The code is actively being used in several projects.\n\n\nAcknowledgements\n================\n\n- This project is supported in part through the National Science Foundation grant IIS 1251151.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOHDSI%2FDatabaseConnector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FOHDSI%2FDatabaseConnector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOHDSI%2FDatabaseConnector/lists"}