Skip to content

TODO

This code-generation template creates table creation scripts for Snowflake based on source conventions.

After importing data definitions from operational systems, a typical next step is generating source objects to load the data delta into. This template creates these tables.

  • Snowflake

This template can be assigned to ‘source’ Data Objects. It will add the defined data solution standard columns and streamline the data types.

N/A.

N/A.

--
-- Source table creation statement for {{./conventions.sourceObjectLocation}}.{{name}}.
--
-- Generated from template '{{templateMetadata.name}}'.
--
DROP TABLE IF EXISTS "{{./conventions.sourceObjectLocation}}.{{name}}";
CREATE TABLE "{{./conventions.sourceObjectLocation}}.{{name}}"
(
{{#each dataItems}}
"{{name}}" {{dataType}}{{#unless @last}},{{/unless}}
{{/each}}
);