迁移流和任务 (Snowflake)
Migrate Streams and Tasks (Snowflake)
有没有办法将流和任务迁移(复制)到 Snowflake 中的另一个帐户。如果我在同一帐户中克隆数据库,我可以看到流和任务复制到另一个数据库。
根据必须移动的内容,可以选择在第二个环境中获取 DDL 和 运行:
Returns a DDL statement that can be used to recreate the specified object. For databases and schemas, GET_DDL is recursive, i.e. it returns the DDL statements for recreating all supported objects within the specified database/schema.
-- identifying tasks/streams
SHOW TASKS IN DATABASE ...;
SHOW STREAMS IN DATABASE...;
-- getting DDL for specific task/stream
SELECT GET_DDL('STREAM', <name>);
SELECT GET_DDL('TASK', <name>);
有没有办法将流和任务迁移(复制)到 Snowflake 中的另一个帐户。如果我在同一帐户中克隆数据库,我可以看到流和任务复制到另一个数据库。
根据必须移动的内容,可以选择在第二个环境中获取 DDL 和 运行:
Returns a DDL statement that can be used to recreate the specified object. For databases and schemas, GET_DDL is recursive, i.e. it returns the DDL statements for recreating all supported objects within the specified database/schema.
-- identifying tasks/streams
SHOW TASKS IN DATABASE ...;
SHOW STREAMS IN DATABASE...;
-- getting DDL for specific task/stream
SELECT GET_DDL('STREAM', <name>);
SELECT GET_DDL('TASK', <name>);