SHOW CODE BUNDLES

statementsupportedContainer services & dev tooling

docs.snowflake.com ↗

Object: CODE BUNDLE

Note Notebook Project Objects have been renamed to Code Bundles. The NOTEBOOK PROJECT grammar is still supported; for that syntax, see SHOW NOTEBOOK PROJECTS. For background on the rename, see the behavior change announcement. Lists the Code Bundles visible to the current role. You can use this command to list objects in the current database and schema for the session, a specified database or schema, or your entire account. The output includes the metadata and properties for each object. The objects are sorted lexicographically by database, schema, and object name (see Output in this topic for descriptions of the output columns). The order of rows in the results is important to note if you want to filter the results.

Syntax

supportedpartialnot supportednot scored

SHOW CODE BUNDLES;

SHOW CODE BUNDLES IN SCHEMA <database_name>.<schema_name>;

SHOW CODE BUNDLES IN DATABASE <database_name>;

SHOW CODE BUNDLES IN ACCOUNT;

Parameters

NameRequiredDescription
IN SCHEMA <database_name>.<schema_name>Lists Code Bundles in the specified schema.
IN DATABASE <database_name>Lists Code Bundles in all schemas of the specified database.
IN ACCOUNTLists all Code Bundles in the account that are visible to the current role.

Usage notes

Output

The output of the command includes the following columns, which describe the properties and metadata of the object: Column | Description created_on | Timestamp of creation. name | Name of the Code Bundle. database_name | Database containing the Code Bundle. schema_name | Schema containing the Code Bundle. owner | The role that owns the Code Bundle. comment | Comment associated with the Code Bundle.

Access control requirements

A role used to execute this operation must have the following privileges at a minimum: Privilege | Object | Notes USAGE or OWNERSHIP | Database | OWNERSHIP is a special privilege on an object that is automatically granted to the role that created the object, but can also be transferred using the GRANT OWNERSHIP command to a different role by the owning role (or any role with the MANAGE GRANTS privilege). USAGE or OWNERSHIP | Schema | OWNERSHIP is a special privilege on an object that is automatically granted to the role that created the object, but can also be transferred using the GRANT OWNERSHIP command to a different role by the owning role (or any role with the MANAGE GRANTS privilege). For instructions on creating a custom role with a specified set of privileges, see Creating custom roles. For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.

See also

Referenced by