R/dbGetInfo__duckdb_driver.R

Defines functions dbGetInfo__duckdb_driver

Documented in dbGetInfo__duckdb_driver

#' @rdname duckdb_driver-class
#' @inheritParams DBI::dbGetInfo
#' @param dbObj An object inheriting from class [duckdb_driver-class].
#' @usage NULL
dbGetInfo__duckdb_driver <- function(dbObj, ...) {
  info <- dbGetInfo__duckdb_connection(default_connection())
  list(
    driver.version = info$db.version,
    client.version = info$db.version,
    dbname = dbObj@dbdir
  )
}

#' @rdname duckdb_driver-class
#' @export
setMethod("dbGetInfo", "duckdb_driver", dbGetInfo__duckdb_driver)

Try the duckdb package in your browser

Any scripts or data that you put into this service are public.

duckdb documentation built on Oct. 30, 2024, 5:06 p.m.