Learn R Programming

dbi.table (version 1.0.1)

dbi.catalog: Create a dbi.catalog

Description

A dbi.catalog represents a database catalog.

Usage

dbi.catalog(conn)

Value

dbi.catalog returns a dbi.catalog (internally an

environment with the class attribute set to

"dbi.catalog").

Arguments

conn

a connection handle returned by dbConnect or a zero-argument function that returns a connection handle.

Examples

Run this code
# 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