R/dbListTables_PqConnection.R

Defines functions dbListTables_PqConnection

Documented in dbListTables_PqConnection

#' @rdname postgres-tables
#' @usage NULL
dbListTables_PqConnection <- function(conn, ...) {
  query <- list_tables(conn = conn, order_by = "table_type, table_name")

  dbGetQuery(conn, query)[["table_name"]]
}

#' @rdname postgres-tables
#' @export
setMethod("dbListTables", "PqConnection", dbListTables_PqConnection)

Try the RPostgres package in your browser

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

RPostgres documentation built on April 3, 2025, 6:22 p.m.