powered by
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
listTables(con, schema = NULL)
A character vector of table names
A DBI connection to a database
The name of a schema in a database. If NULL, returns DBI::dbListTables(con).
if (FALSE) { con <- DBI::dbConnect(duckdb::duckdb(), dbdir = eunomiaDir()) listTables(con, schema = "main") }
Run the code above in your browser using DataLab