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.

  1. 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 暂存文件.

  2. :doc:` 创建应用程序包 </developer-guide/native-apps/creating-app-package>`。

    An application package is a container that encapsulates the data content, application logic, metadata, and setup script required by an app.

  3. 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.

  4. Create the manifest file for your app.

    The manifest file defines the configuration and setup properties required by the app, including the location of the setup script and versions.

  5. 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.

  6. Add versions and patches for your app.

    See About release channels, versions, and patches for more information.

  7. 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 中共享数据内容

  8. Add features to your app.

    You can add various features to your app to provide additional functionality, including the following features:

  9. 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.

  10. 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 使用发布通道设置发布指令.

  11. 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.

  12. :doc:` 运行自动安全扫描 <security-overview>`。

    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.

  1. Become a provider.

    Becoming a provider allows you to create and manage listings to share your app with consumers.

  2. 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.

  3. 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 提交列表以供审批

  4. 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.

  1. Become a Snowflake consumer.

    成为 Snowflake 使用者后,您就可以访问私密共享的列表,或者在 Snowflake Marketplace 上共享的列表。您还可以访问作为直接共享或数据交换的一部分共享的数据,这提供较为有限的数据共享功能。

  2. Install the app.

    Consumers can install an app from a listing.

  3. Grant the privileges required by the app.

    Some apps might ask the consumer to grant global and object-level privileges to the app.

  4. 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.

  5. Manage an app.

    After installing and configuring the app, a consumer can perform additional tasks to use and monitor the app.

语言: 中文