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)
rstats-db/RPostgres documentation built on April 20, 2024, 11:55 a.m.