DESCRIBE STREAMLIT

Streamlitオブジェクト内の列を説明します。

DESCRIBE は DESC に短縮できます。

こちらもご参照ください。

CREATE STREAMLIT, SHOW STREAMLITS, ALTER STREAMLIT, DROP STREAMLIT

構文

DESC[RIBE] STREAMLIT <name>
Copy

必須パラメーター

name

説明するStreamlitオブジェクトの識別子を指定します。識別子にスペースまたは特殊文字が含まれる場合は、文字列全体を二重引用符で囲む必要があります。二重引用符で囲まれた識別子も大文字と小文字が区別されます。

アクセス制御の要件

ロールが以下の表にあるオブジェクトを所有していない場合、ロールはそれらのオブジェクトに対して次の 権限 を持つ必要があります。

権限

オブジェクト

USAGE

記述するStreamlitオブジェクト

スキーマ内のオブジェクトに対して操作を実行するには、親データベースとスキーマに対する USAGE 権限が必要です。スキーマに対する 任意の権限を付与されたロールは、そのロールがスキーマを解決できることに注意してください。たとえば、スキーマに対するCREATE権限を付与されたロールは、そのスキーマにオブジェクトを作成できますが、そのスキーマに対するUSAGE*も*付与されている必要はありません。

指定された権限のセットを使用してカスタムロールを作成する手順については、 カスタムロールの作成 をご参照ください。

セキュリティ保護可能なオブジェクト に対して SQL アクションを実行するためのロールと権限付与に関する一般的な情報については、 アクセス制御の概要 をご参照ください。

使用上の注意

  • このコマンドの出力を後処理するには、 パイプ演算子->>)または RESULT_SCAN 関数。どちらのコンストラクトも、出力を クエリできる結果セットとして扱います。

    このコマンドの出力列名は小文字で生成されます。パイプ演算子または でこのコマンドの結果セットを消費する場合 RESULT_SCAN 関数の場合は、を使用します 二重引用符で囲まれた識別子 クエリの列名に を使用し、スキャンされた出力の列名と一致するようにします。たとえば、出力列の名前が次の場合 type``次に を指定します ``"type" 識別子用。

出力

コマンド出力は、Streamlitオブジェクトに関する情報を以下の列で提供します。

説明

title

Title of the Streamlit object that displays in Snowsight.

main_file

Name of the Streamlit app's entrypoint file.

query_warehouse

Warehouse where queries issued by the Streamlit app are run.

url_id

Streamlitオブジェクトに関連付けられた一意の ID。

default_packages

StreamlitアプリケーションのデフォルトPythonパッケージ。

user_packages

Python packages that the user specified in the environment.yml file. This is empty if there is no environment.yml file.

import_urls

Streamlitアプリがインポートする URLs のリスト。

external_access_integrations

List of external access integrations associated with the Streamlit object.

external_access_secrets

List of external access secrets associated with the Streamlit object.

name

Unique name of the Streamlit object within its schema.

comment

Comment associated with the Streamlit object.

default_version

ライブバージョンがない場合に使用するStreamlitオブジェクトのデフォルトバージョン。アプリにまだライブバージョンがなく、所有者がSnowsightでアプリを開いた場合、このバージョンがライブバージョンにコピーされます。

default_version_name

Name of the default version directory within the Streamlit object's file system.

default_version_alias

サポート対象外で、常にnullです。

default_version_location_uri

デフォルトバージョンのアプリファイルの場所 URI 。これは読み取り専用です。

default_version_source_location_uri

Gitオブジェクト内にある、デフォルトバージョンのソースファイルの場所 URI 。StreamlitオブジェクトがGitオブジェクトに接続されていない場合はnullです。

default_version_git_commit_hash

StreamlitオブジェクトのデフォルトバージョンのGitコミットハッシュ。StreamlitオブジェクトがGitオブジェクトに接続されていない場合はnullです。

last_version_name

Name of the last version directory within the Streamlit object's file system.

last_version_alias

サポート対象外で、常にnullです。

last_version_location_uri

最終バージョンのアプリファイルの場所 URI 。これは読み取り専用です。

last_version_source_location_uri

Gitオブジェクト内にある、最終バージョンのソースファイルの場所 URI 。StreamlitオブジェクトがGitオブジェクトに接続されていない場合はnullです。

last_version_git_commit_hash

Streamlitオブジェクトの最終バージョンのGitコミットハッシュ。StreamlitオブジェクトがGitオブジェクトに接続されていない場合はnullです。

live_version_location_uri

Streamlitオブジェクトのライブバージョンの場所 URI 。この場所は読み書き可能です。Snowsightにおける編集はこの場所に保存されます。この場所にファイルをコピーすることで、ライブアプリをリモートで更新できます。

ROOT_LOCATION パラメーターを使用して作成されたStreamlitオブジェクトの場合、コマンド出力は以下の列の情報を提供します。

説明

name

Unique name of the Streamlit object within its schema.

title

Title of the Stramlit object that displays in Snowsight.

root_location

Streamlitオブジェクトのファイルの場所。

main_file

ルートの場所を基準とした、Streamlitアプリのエントリポイントファイルへのパス。

query_warehouse

Warehouse where queries issued by the Streamlit app are run.

url_id

Streamlitオブジェクトに関連付けられた一意の ID。

default_packages

Default Python packages for the Streamlit app.

user_packages

Python packages that the user specified in the environment.yml file. This is empty if there is no environment.yml file.

import_urls

Streamlitアプリがインポートする URLs のリスト。

external_access_integrations

List of external access integrations associated with the Streamlit object.

external_access_secrets

List of external access secrets associated with the Streamlit object.