Skip to contents

Returns every table and view in the lake as a tidy data frame – the quick answer to "what is in here?".

Usage

list_ducklake_tables(ducklake_name = NULL)

Arguments

ducklake_name

Optional name of the attached DuckLake catalog. If NULL, the current database is used.

Value

A data frame with one row per object: schema_name, table_name, and type ("table" or "view").

Examples

lake_dir <- tempfile("list_lake_")
dir.create(lake_dir)
attach_ducklake("list_lake", lake_path = lake_dir)
create_table(mtcars, "cars")

list_ducklake_tables()
#>   schema_name table_name  type
#> 1        main       cars table

detach_ducklake("list_lake", shutdown = TRUE)
unlink(lake_dir, recursive = TRUE)