list_tables {CDMConnector} | R Documentation |
List tables in a schema
Description
DBI::dbListTables can be used to get all tables in a database but not always in a
specific schema. listTables
will list tables in a schema.
Usage
list_tables(con, schema = NULL)
listTables(con, schema = NULL)
Arguments
con |
A DBI connection to a database |
schema |
The name of a schema in a database. If NULL, returns DBI::dbListTables(con). |
Value
A character vector of table names
Examples
## Not run:
con <- DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
listTables(con, schema = "main")
## End(Not run)
[Package CDMConnector version 1.5.0 Index]