# DBI (R)

> R's common database interface, implemented by backends for PostgreSQL, MySQL, SQLite, ODBC and more

Source: https://talira.ai/catalog/dbi-r-vavnr76a
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / databases / drivers](https://talira.ai/categories/libraries/databases/drivers), [languages / r](https://talira.ai/categories/languages/r)
- Licence: LGPL-2.1-or-later[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Kirill Müller](https://talira.ai/orgs/kirill-muller.md)

DBI is R's database interface: a set of virtual classes and generics, similar in spirit to Perl's DBI, Java's JDBC and Python's DB-API, that R code uses to connect to a database, run statements, fetch results, read metadata and manage transactions. Backends such as RPostgres, RMariaDB, RSQLite, odbc and bigrquery implement it, so the same code works against different databases; most users get DBI installed with one of them. Its specification is written down in a vignette and tested by the DBItest package, and it depends only on R and the methods package.

## Links

- Website: https://dbi.r-dbi.org/
- GitHub: https://github.com/r-dbi/DBI
- Docs: https://dbi.r-dbi.org/

## Problems it solves

- query a PostgreSQL or MySQL database from R
- write R code that works with several databases without changing it
- read a database table into an R data frame

## Features

- connect, execute statements and fetch results through one interface
- dbGetQuery, dbReadTable, dbWriteTable and dbWithTransaction
- database metadata such as tables and fields
- written specification, tested by DBItest
- no dependencies beyond R and the methods package

## Limitations

- Doesn't talk to a database itself: it needs a backend package such as RPostgres, RSQLite or odbc[^1]

## Trust

Overall: 0.57 out of 1.
Signals: maintenance 0.99, adoption 0.50, momentum 0.15, community 0.64, backing 0.30, extensibility 0.00.

- last commit 2 days ago
- 58 commits in the last 90 days
- latest release v1.3.0 9 months ago
- 324 GitHub stars
- 39 contributors
- backed by Kirill Müller

## Sources

[^1]: https://github.com/r-dbi/DBI#readme (checked 28 Nov 2026)
[^2]: https://github.com/r-dbi/DBI/blob/main/DESCRIPTION (checked 28 Nov 2026)
