Snowflake Native App Framework 워크플로¶
This topic describes the workflows for developing, publishing, and installing a Snowflake Native App.
개발 워크플로¶
The following workflow outlines the general tasks for developing and testing Snowflake Native App:
참고
Developing an app is an iterative process. You might perform many of these tasks multiple times or in a different order depending on the requirements of your app and environment.
Set up your development environment.
To develop a Snowflake Native App, you need to set up your development environment. This includes:
Install the Snowflake CLI. See Set up the Snowflake CLI to develop an app.
Create a stage to upload your application files.
참고
If you are using Snowflake CLI you do not need to create a stage manually because Snowflake CLI automatically creates a temporary stage to upload your application files during development.
For information on creating a stage using SQL, see CREATE STAGE. For information on creating a stage using Snowsight, see Snowsight를 사용하여 파일 스테이징하기.
-
An application package is a container that encapsulates the data content, application logic, metadata, and setup script required by an app.
Create the setup script for your app.
The setup script contains the SQL statements that define the components created when a consumer installs your app.
앱에 대한 :doc:`매니페스트 파일</developer-guide/native-apps/manifest-overview>`을 만듭니다.
The manifest file defines the configuration and setup properties required by the app, including the location of the setup script and versions.
Upload the application files to a stage.
The setup script, the manifest file, and other resources that your app requires must be uploaded to a named stage so that these files are available as you develop your app.
Add versions and patches for your app.
See About release channels, versions, and patches for more information.
Add shared data content to your app.
You can securely share your data content with consumers as part of your app. For more information, see Snowflake Native App 에서 데이터 내용 공유
Add features to your app.
You can add various features to your app to provide additional functionality, including the following features:
Set up logging and event handling to troubleshoot your app.
To troubleshoot an app, you can set up logging and event handling. Consumers can set up logging and event handling in their account and share them with providers.
Set the release directive for your app.
A release directive determines which version and patch level are available to consumers. You can set the release directive for each release channel of your application package. For more information, see 릴리스 채널을 사용하여 릴리스 지시문 설정하기.
Test your app.
You can test an app in your account before publishing it to consumers. For more information, see 로컬에서 앱 설치 및 테스트하기.
Snowflake provides development mode and debug mode to test different aspects of your app.
-
Before you can share an app with consumers outside your organization, the app must pass an automated security scan to ensure that it is secure and stable.
게시 워크플로¶
After developing and testing your app, providers can publish the app to share it with consumers.
-
Becoming a provider allows you to create and manage listings to share your app with consumers.
Create a listing.
You can create a private listing or a Snowflake Marketplace listing to share your app with consumers. For more information, see Create a listing for an app.
Submit your listing for approval.
Before you can publish a listing to the Snowflake Marketplace, you must submit the listing to Snowflake for approval. For more information, see 승인을 위해 목록 제출하기
Publish your listing.
After your listing is approved, you can publish the listing to make it available to consumers. For more information, see Publish a listing for an app.
컨슈머 워크플로¶
Consumers can discover the app and install it from a listing. After installing the app, consumers can configure, use, and monitor the app. See Working with apps as a consumer.
-
Snowflake 컨슈머가 되면 비공개로 공유되거나 Snowflake Marketplace 에 있는 목록에 액세스할 수 있습니다. 더 많은 제한적 데이터 공유 기능을 제공하는 직접 공유 또는 데이터 교환의 일부로서 공유된 데이터에 액세스할 수도 있습니다.
-
Consumers can install an app from a listing.
Grant the privileges required by the app.
Some apps might ask the consumer to grant global and object-level privileges to the app.
Enable logging and event sharing to troubleshoot the app.
A provider can set up an app to emit logging and event data. A consumer can set up an events table to share this data with providers. Logs and event data are useful when troubleshooting an app.
-
After installing and configuring the app, a consumer can perform additional tasks to use and monitor the app.