listTables | R Documentation |
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.
listTables(con, schema = NULL)
con |
A DBI connection to a database |
schema |
The name of a schema in a database. If NULL, returns DBI::dbListTables(con). |
A character vector of table names
## Not run:
con <- DBI::dbConnect(duckdb::duckdb(), dbdir = eunomiaDir())
listTables(con, schema = "main")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.