# chinook.duckdb is a zero-argument function that returns a DBI handle
(db <- dbi.catalog(chinook.duckdb))
# a dbi.catalog corresponds to a catalog - list the schemas
ls(db)
# list the tables in the schema 'main'
ls(db$main)
Run the code above in your browser using DataLab