List Schemas in the Current Database
Source: R/utils-db.R
Returns a lazy tibble of all schemas in the current database of the connection. Queries information_schema.schemata and filters to the current database (catalog_name = current_database()).
Usage
list_current_schemas(.con)Arguments
Value
A dbplyr lazy tibble with columns:
-
catalog_name— the current database name. -
schema_name— each schema within that database.
Details
-
This function assumes the connection is valid (checked with
validate_con()). -
Returns a
dbplyrlazy table; usecollect()to bring the result into R.
See Also
Other db-list: list_all_databases(), list_all_tables(), list_current_tables(), list_extensions(), list_fns(), list_setting(), list_shares()