R/dbListTables__duckdb_connection.R

Defines functions dbListTables__duckdb_connection

Documented in dbListTables__duckdb_connection

#' @rdname duckdb_connection-class
#' @inheritParams DBI::dbListTables
#' @usage NULL
dbListTables__duckdb_connection <- function(conn, ...) {
  dbGetQuery(
    conn,
    SQL(
      "SELECT name FROM sqlite_master WHERE type='table' OR type='view' ORDER BY name"
    )
  )[[1]]
}

#' @rdname duckdb_connection-class
#' @export
setMethod("dbListTables", "duckdb_connection", dbListTables__duckdb_connection)

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.