listTables {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
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 = eunomiaDir())
listTables(con, schema = "main")
## End(Not run)
[Package CDMConnector version 2.1.1 Index]