framework docs
Database

db_drivers_install()

Install database drivers

Interactive helper to install one or more database drivers. Provides helpful instructions and handles special cases (like ODBC).

Usage

db_drivers_install(drivers = NULL, repos = getOption("repos"))

Arguments

drivers
Character vector. Database driver names to install (e.g., "postgres", "mysql", "duckdb"). If NULL, shows interactive menu.
repos
Character. CRAN repository URL. Default: getOption("repos")

Value

NULL (invisible). Installs packages as side effect.

Examples

if (FALSE) {
# Install specific drivers
db_drivers_install(c("postgres", "mysql"))
# Interactive mode
db_drivers_install()
}