Snowflake Native App Framework-Workflow¶
This topic describes the workflows for developing, publishing, and installing a Snowflake Native App.
Entwicklungs-Workflow¶
The following workflow outlines the general tasks for developing and testing Snowflake Native App:
Bemerkung
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.
Richten Sie Ihre Entwicklungsumgebung ein.
Um eine Snowflake Native App zu entwickeln, müssen Sie Ihre Entwicklungsumgebung einrichten. Dies beinhaltet:
Installieren Sie die Snowflake CLI. Siehe Einrichten der Snowflake CLI, um eine App zu entwickeln.
Erstellen Sie einen Stagingbereich zum Hochladen Ihrer Anwendungsdateien.
Bemerkung
Wenn Sie Snowflake CLI verwenden, müssen Sie einen Stagingbereich nicht manuell erstellen, da Snowflake CLI automatisch einen temporären Stagingbereich erstellt, um Ihre Anwendungsdateien während der Entwicklung hochzuladen.
Weitere Informationen zum Erstellen eines Stagingbereichs mit SQL finden Sie unter CREATE STAGE. Weitere Informationen zum Erstellen eines Stagingbereichs mit Snowsight finden Sie unter Bereitstellen von Dateien im Stagingbereich mit Snowsight.
Erstellen eines Anwendungspakets.
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.
Erstellen der Manifest-Datei für Ihre App.
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.
Fügen Sie Versionen und Patches für Ihre App hinzu.
See Release-Kanäle, Versionen und Patches for more information.
Hinzufügen freigegebener Dateninhalte zur App.
You can securely share your data content with consumers as part of your app. For more information, see Dateninhalte freigeben in einer Snowflake Native App
Hinzufügen von Features zur Ihrer App.
Sie können verschiedene Features zu Ihrer App hinzufügen, um zusätzliche Funktionen bereitzustellen, einschließlich der folgenden 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.
Eine Release-Richtlinie bestimmt, welche Version und welcher Patch-Level (Revisionsnummer) für die Verbraucher verfügbar sind. Sie können die Release-Richtlinie für jeden Release-Kanal Ihres Anwendungspakets festlegen. Weitere Informationen dazu finden Sie unter Release-Richtlinie mithilfe eines Release-Kanals festlegen.
Testen der App.
Sie können eine App in Ihrem Konto testen, bevor Sie sie für Verbraucher veröffentlichen. Weitere Informationen dazu finden Sie unter Eine App lokal installieren und testen.
Snowflake provides development mode and debug mode to test different aspects of your app.
Ausführen des automatischen Sicherheitsscans.
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.
Veröffentlichungs-Workflow¶
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.
Erstellen eines Freigabeangebots.
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.
Reichen Sie Ihr Freigabeangebot zur Genehmigung ein.
Before you can publish a listing to the Snowflake Marketplace, you must submit the listing to Snowflake for approval. For more information, see Freigabeangebot zur Genehmigung einreichen
Freigabeangebot veröffentlichen.
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.
Verbraucher-Workflow¶
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.
Registrieren als Snowflake-Verbraucher.
Wenn Sie Snowflake-Verbraucher werden, können Sie auf Angebote zugreifen, die privat oder auf Snowflake Marketplace freigegeben sind. Sie können auch auf Daten zugreifen, die über direkte Freigaben oder über Datenbörsen freigegeben wurden, allerdings sind hier die Möglichkeiten des Data Sharing begrenzt.
-
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.