关于 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 |
表和视图的传统只读共享
|
表、视图的 SQL 授权 |
|
|
Declarative Native App |
增强共享
|
应用程序包 |
|
|
Full Native Apps |
应用程序在 Snowflake 使用账户中完整运行,具备复杂业务逻辑和界面
|
应用程序包、服务(在容器中) |
|
|
Declarative Native Apps resources¶
In the following topics, you'll find information you need to get started with Declarative Native Apps.
- Native Application Framework 中的声明式共享简介
- Native Application Framework 的声明式共享中的应用程序包
- 在声明式共享原生应用程序中编辑笔记本
- 使用声明式共享创建列表
- 在 Native Application Framework 中监控声明式共享的使用情况
- Native Application Framework 中声明式共享中的包版本
- 在声明式共享中对应用程序包进行版本控制
- Tutorial: Getting started with Declarative Native Apps
- Declarative Native App command reference
- 应用程序角色:允许使用者共享同一数据的不同视图
- Declarative Native App manifest reference
- Install a Declarative Native App
- Access content in a Declarative Native App
- 声明式应用程序使用者端执行模型
- Native Apps 中的声明式共享:限制