A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.snowflake.com/en/sql-reference/sql/show-git-tags below:

Website Navigation


SHOW GIT TAGS | Snowflake Documentation

SHOW GIT TAGS

Lists the tags in the specified Snowflake Git repository clone.

See also:

ALTER GIT REPOSITORY, CREATE GIT REPOSITORY, DESCRIBE GIT REPOSITORY, DROP GIT REPOSITORY, SHOW GIT BRANCHES, SHOW GIT REPOSITORIES

Syntax
SHOW GIT TAGS [ LIKE '<pattern>' ] IN [ GIT REPOSITORY ] <repository_name>

Copy

Parameters
LIKE 'pattern'

Optionally filters the command output by object name. The filter uses case-insensitive pattern matching, with support for SQL wildcard characters (% and _).

For example, the following patterns return the same results:

... LIKE '%testing%' ...

... LIKE '%TESTING%' ...

. Default: No value (no filtering is applied to the output).

IN [ GIT REPOSITORY ] repository_name

Specifies the Git repository clone containing the tags to show.

Output

The command output provides Git tags properties in the following columns:

Column

Description

name

Name of the tag.

path

Path of the tag.

commit_hash

Commit hash of the tag.

author

Author of the tag.

message

Commit message for the tag.

Access control requirements

A role used to execute this operation must have the following privileges at a minimum:

Privilege

Object

Notes

READ

Git repository

Git repository clone containing the tags to show

The USAGE privilege on the parent database and schema are required to perform operations on any object in a schema.

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.

Usage notes Examples

The following example lists tags in the Git repository clone snowflake_extensions.

SHOW GIT TAGS IN snowflake_extensions;

Copy

The preceding command generates output such as the following:

-----------------------------------------------------------------------------------------------------------------------------------------------
| name    | path          | commit_hash                              | author                                     | message                   |
-----------------------------------------------------------------------------------------------------------------------------------------------
| example | /tags/example | 16e262d401297cd097d5d6c266c80ff9f7e1e4be | Gladys Kravits (gladyskravits@example.com) | Example code for preview. |
-----------------------------------------------------------------------------------------------------------------------------------------------

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4