Skip to contents

Retrieves all database objects that are owned by the current authenticated user in MotherDuck.

Usage

list_owned_shares(.con)

Arguments

.con

A valid DBI connection (DuckDB / MotherDuck).

Value

A tibble with one row per share owned by the current user, including columns for share name, object type, and granted privileges.

Details

This function executes the LIST SHARES; command to return metadata about all shares created by the current user. The returned tibble includes details such as the share name, type of object shared, and privileges granted.

Examples

if (FALSE) { # \dontrun{
con <- DBI::dbConnect(duckdb::duckdb())
owned_tbl <- list_owned_shares(con)
print(owned_tbl)
} # }