Skip to contents

Retrieves all database objects that have been shared with the current authenticated user in MotherDuck.

Usage

list_shared_with_me_shares(.con)

Arguments

.con

A valid DBI connection (DuckDB / MotherDuck).

Value

A tibble containing one row per shared object, with columns describing the owner, object type, object name, and granted privileges.

Details

This function queries the MD_INFORMATION_SCHEMA.SHARED_WITH_ME view to return metadata about all shares granted to the current user, including the owner, object name, type, and privileges. The result is returned as a tidy tibble for easy manipulation in R.

Examples

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