DatabaseConnector
An R package for connecting to databases using JDBC.
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.5%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
An R package for connecting to databases using JDBC.
Basic Info
- Host: GitHub
- Owner: OHDSI
- Language: R
- Default Branch: main
- Homepage: http://ohdsi.github.io/DatabaseConnector/
- Size: 103 MB
Statistics
- Stars: 56
- Watchers: 48
- Forks: 89
- Open Issues: 29
- Releases: 18
Topics
Metadata Files
README.md
DatabaseConnector
DatabaseConnector is part of HADES.
Introduction
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.
Features
- Create connections to the various database platforms:
- MicrosoftSQL Server
- Oracle
- PostgresSql
- Microsoft Parallel Data Warehouse (a.k.a. Analytics Platform System)
- Amazon Redshift
- Apache Impala
- Google BigQuery
- IBM Netezza
- SQLite
- Spark
- InterSystems IRIS
- Statements for executing queries with
- Error reporting to file
- Progress reporting
- Multiple statements per query
- Support for fetching data to Andromeda objects
- Insert data frame to a database table
- Supports the
DBIinterface, with SQL statements automatically translated to the appropriate dialect. - Supports the
dbplyrinterface. - Integrates with RStudio's Connections tab
Examples
r
connectionDetails <- createConnectionDetails(dbms="postgresql",
server="localhost",
user="root",
password="blah")
conn <- connect(connectionDetails)
querySql(conn,"SELECT COUNT(*) FROM person")
disconnect(conn)
Technology
DatabaseConnector is an R package using Java's JDBC drivers and other DBI drivers.
System Requirements
Running the package requires R with the package rJava installed. Also requires Java 1.8 or higher.
Installation
See the instructions here for configuring your R environment, including Java.
To install the latest stable version, install from CRAN:
r
install.packages("DatabaseConnector")
Download the database drivers as described here.
(Optionally) To use Windows Authentication for SQL Server, download the authentication DDL file as described here.
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
Contributing
Read here how you can contribute to this package.
License
DatabaseConnector is licensed under Apache License 2.0. The JDBC drivers fall under their own respective licenses.
Development
DatabaseConnector is being developed in R Studio.
Development status
Stable. The code is actively being used in several projects.
Acknowledgements
- This project is supported in part through the National Science Foundation grant IIS 1251151.
Owner
- Name: Observational Health Data Sciences and Informatics
- Login: OHDSI
- Kind: organization
- Website: http://ohdsi.org
- Repositories: 285
- Profile: https://github.com/OHDSI
GitHub Events
Total
- Create event: 8
- Release event: 2
- Issues event: 14
- Watch event: 2
- Delete event: 1
- Member event: 1
- Issue comment event: 42
- Push event: 69
- Pull request review event: 9
- Pull request review comment event: 6
- Pull request event: 14
- Fork event: 8
Last Year
- Create event: 8
- Release event: 2
- Issues event: 14
- Watch event: 2
- Delete event: 1
- Member event: 1
- Issue comment event: 42
- Push event: 69
- Pull request review event: 9
- Pull request review comment event: 6
- Pull request event: 14
- Fork event: 8
Committers
Last synced: about 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| schuemie | s****e@o****g | 321 |
| Schuemie | M****I@i****m | 138 |
| Admin_mschuemi | A****i@i****m | 95 |
| Marc Suchard | m****d@g****m | 32 |
| Benjamin De Boe | b****e@i****m | 20 |
| Anastasiia Klochkova | a****a@o****m | 19 |
| jgilber2 | J****2@i****m | 15 |
| Adam Black | a****3 | 14 |
| Adam Black | a****k@o****m | 12 |
| Matthew Young-Lai | m****l@g****m | 10 |
| Londhe, Ajit [JRDUS] | a****2@i****m | 10 |
| Vitaly Koulakov | v****v@g****m | 9 |
| ssuvorov-fls | s****v@o****m | 7 |
| schuemie | s****e@g****m | 7 |
| yaroslavtir | y****v@o****m | 6 |
| PGrafkin | p****a@g****m | 6 |
| N.K | c****2@a****r | 4 |
| Anthony Sena | a****5@i****m | 4 |
| drowthorn | d****n@i****m | 4 |
| alex-odysseus | a****o@o****m | 3 |
| Tom White | t****m@c****m | 3 |
| unknown | m****i@W****m | 3 |
| Aaron Browne | a****e@g****m | 2 |
| Cornelius Raths | c****s@n****m | 2 |
| Gowtham Rao | g****9@i****m | 2 |
| Gowtham Rao | r****o@o****g | 2 |
| egillax | e****x@g****m | 2 |
| illo | o****g@g****t | 2 |
| Jie Fan | l****o@g****m | 1 |
| Frank J DeFalco | f****o@o****g | 1 |
| and 5 more... | ||
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 130
- Total pull requests: 48
- Average time to close issues: 6 months
- Average time to close pull requests: 27 days
- Total issue authors: 61
- Total pull request authors: 17
- Average comments per issue: 3.67
- Average comments per pull request: 1.96
- Merged pull requests: 32
- Bot issues: 0
- Bot pull requests: 1
Past Year
- Issues: 11
- Pull requests: 16
- Average time to close issues: 2 months
- Average time to close pull requests: 23 days
- Issue authors: 9
- Pull request authors: 6
- Average comments per issue: 1.55
- Average comments per pull request: 1.69
- Merged pull requests: 11
- Bot issues: 0
- Bot pull requests: 1
Top Authors
Issue Authors
- schuemie (22)
- ablack3 (17)
- alondhe (7)
- azimov (7)
- anthonysena (7)
- javier-gracia-tabuenca-tuni (6)
- gowthamrao (2)
- egillax (2)
- katy-sadowski (2)
- ssuvorov-fls (2)
- alex-odysseus (2)
- illoRocks (2)
- IoannaNika (2)
- KingAl (2)
- drowlingua (2)
Pull Request Authors
- ablack3 (19)
- azimov (6)
- anthonysena (5)
- bdeboe (4)
- ssuvorov-fls (3)
- dependabot[bot] (2)
- alex-odysseus (2)
- eric-fey-hus (2)
- MPagel (2)
- javier-gracia-tabuenca-tuni (1)
- wibeasley (1)
- clairblacketer (1)
- drowlingua (1)
- jdposada (1)
- gowthamrao (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 3
-
Total downloads:
- cran 3,211 last-month
- Total docker downloads: 21,884
-
Total dependent packages: 7
(may contain duplicates) -
Total dependent repositories: 133
(may contain duplicates) - Total versions: 96
- Total maintainers: 1
proxy.golang.org: github.com/ohdsi/databaseconnector
- Documentation: https://pkg.go.dev/github.com/ohdsi/databaseconnector#section-documentation
-
Latest release: v6.4.0+incompatible
published over 1 year ago
Rankings
proxy.golang.org: github.com/ohdsi/DatabaseConnector
- Documentation: https://pkg.go.dev/github.com/ohdsi/DatabaseConnector#section-documentation
-
Latest release: v6.4.0+incompatible
published over 1 year ago
Rankings
cran.r-project.org: DatabaseConnector
Connecting to Various Database Platforms
- Homepage: https://ohdsi.github.io/DatabaseConnector/
- Documentation: http://cran.r-project.org/web/packages/DatabaseConnector/DatabaseConnector.pdf
- License: Apache License version 1.1 | Apache License version 2.0 [expanded from: Apache License]
-
Latest release: 6.4.0
published over 1 year ago
Rankings
Maintainers (1)
Dependencies
- R >= 2.10 depends
- DBI >= 1.0.0 imports
- SqlRender >= 1.8.3 imports
- bit64 * imports
- methods * imports
- rJava * imports
- readr * imports
- rlang * imports
- stringr * imports
- urltools * imports
- utils * imports
- Andromeda >= 0.6.0 suggests
- DBItest * suggests
- R.utils * suggests
- RSQLite * suggests
- aws.s3 * suggests
- dplyr * suggests
- knitr * suggests
- rmarkdown * suggests
- ssh * suggests
- testthat * suggests
- withr * suggests
- actions/checkout v3 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
- r-lib/actions/setup-tinytex v2 composite
- actions/checkout v2 composite
- actions/create-release v1 composite
- actions/download-artifact v2 composite
- actions/upload-artifact v2 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
- r-lib/actions/setup-tinytex v2 composite
- actions/checkout v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
- r-lib/actions/setup-tinytex v2 composite