关于 Native Application Framework 中的声明式共享

关于声明式共享

Snowflake Native App Framework 中的声明式共享使提供商能够共享和销售数据产品,并且还能通过加入 笔记本 来增强这些应用程序,从而帮助 Snowflake 使用者更直观地展示和探索数据。

声明式共享带来了一种更简化的创建体验,类似于设置安全数据共享,让用户能够快速地开始使用。

The Declarative Native Apps development experience provides the following features:

  • 声明式共享模型:通过一个简单的基于文本的 YAML 文件即可定义共享对象。

  • 简化测试:开发者可以直接在实时环境中处理内容。

  • 应用程序的 自动版本控制和更新

  • 多个数据视图的准备能力:包括针对不同使用者类型进行了优化的筛选数据视图。

  • 通过将数据分类到应用程序角色的 敏感数据的保护能力。使用者可以将这些应用程序角色委托给团队,以便团队成员仅能查看与其工作相关的数据。

  • 在使用者账户中运行:允许客户管理其资源使用情况和成本。

What is a Declarative Sharing app?

A Declarative Native App is a data product that uses the declarative sharing model to share data and logic with Snowflake consumers.

Declarative Native Apps are built using a combination of Snowflake objects, including the following:

Databases

Databases that the provider shares with consumers.

Schemas

Schemas in the shared databases.

Tables

Database tables in the shared schemas.

Views

Shared views in the shared databases. Views can reference other databases that are not shared, if the dependent databases are included in the manifest file.

Required databases

Databases that are not shared, but are referenced by views in the shared databases. These databases must be included in the manifest file. Consumers can only access data in these databases using the views shared in the app.

Notebooks

Code objects that help consumers visualize and explore the data.

Manifest file

A manifest file defines the app structure and shared objects.

App roles

App roles categorize data and control access to shared objects.

For information about how to declare these objects in the manifest file, see Declarative Native App manifest reference.

安全

Declarative Native Apps have a similar security model to secure data sharing:

  • 应用程序只能访问其包含的数据。

  • 应用程序无法访问使用者的私有数据。

  • 不允许应用程序进行外部调用或访问 Snowflake 账户外部的数据。

数据产品类型

为您的组织选择合适的数据产品,这取决于您的业务需求。想要快速开始使用吗?是否需要具有高级功能的应用程序?下表列出了可用的 Snowflake 数据产品,并提供了其典型用例。Snowflake 数据产品概述。

数据产品最佳用途

数据产品

描述

最适合用于

Secure Data Sharing

表和视图的传统只读共享。

开始进行数据获利,或仅有简单数据共享需求的组织

Declarative Native Apps

增强型共享,包含笔记本、基于角色的访问控制 (RBAC) 以及声明式配置。

已准备好通过指导性体验和文档增加价值的数据提供商

Full Native Apps

在使用者账户中完整运行、并具备复杂业务逻辑和界面的应用程序。

正在构建具有高级功能的复杂数据产品的组织。

选择数据产品

在选择数据产品之前,请考虑以下事项:

数据产品类型

数据产品

描述

提供商版本

安全与功能平衡

最佳提供商用例

Secure Data Sharing

表和视图的传统只读共享

  • 技术专长:基本 Snowflake

  • 开发技能:SQL 知识

  • 维护工作:低 – 仅需更新 SQL

表、视图的 SQL 授权

  • 数据会保留在 Snowflake 中

  • 仅专注于数据集的提供商

  • 初次进入市场

Declarative Native App

增强共享

  • 技术专长:中级 Snowflake

  • 开发技能:SQL、YAML、笔记本

  • 维护工作:低 – 声明式更新、笔记本/SQL 变更

应用程序包

  • 数据会保留在 Snowflake 中

  • 功能有限,支持笔记本、Streamlit 和存储过程

  • 复杂数据需要解释

  • 通过示例展示数据价值

  • 通过更完善的文档降低支持负担

Full Native Apps

应用程序在 Snowflake 使用账户中完整运行,具备复杂业务逻辑和界面

  • 技术专长:高级 Snowflake

  • 开发技能:SQL、容器、编程语言

  • 维护工作:高 – 容器、安全审查

应用程序包、服务(在容器中)

  • 默认情况下,Snowflake 中的数据可以在使用者同意的情况下离开 Snowflake

  • Snowflake 基元和容器运行时

  • 需要复杂逻辑和工作流的数据

  • 复杂的可视化需求

  • 重用 SaaS 应用程序组件

Declarative Native Apps resources

In the following topics, you'll find information you need to get started with Declarative Native Apps.

语言: 中文