Skip to main content

DESCRIBE SHARE

The DESCRIBE SHARE statement is used to get details about a specific share.

info

The creator of the share object can execute this statement by passing the share name. The receiver of the share object can execute this statement by passing the share link.

Syntax

DESCRIBE SHARE [<share name> | <share URL>];

Example

Let's use the sample_data database which is auto attached to MotherDuck users to illustrate the command

DESCRIBE SHARE 'md:_share/sample_data/23b0d623-1361-421d-ae77-62d701d471e6';

It returns a table with the following columns:

column_namecolumn_typedescription
nameVARCHARName of the share
urlVARCHARURL of the share
source_db_nameVARCHARName of the database shared
source_db_uuidUUIDuid of the database shared
accessVARCHARWhether anyone (referred to as UNRESTRICTED) or only organization members (referred to as ORGANIZATION) can attach to the share by its share_url
visibilityVARCHARWhether the share is DISCOVERABLE or HIDDEN
updateVARCHARThe share’s update mode (MANUAL vs. AUTOMATIC)
created_tsTIMESTAMP WITH TIME ZONEThe share’s creation time

You can be specific about what which columns you want to return by using the table function :

SELECT name, url, source_db_name FROM md_describe_database_share('md:_share/sample_data/23b0d623-1361-421d-ae77-62d701d471e6');