Understanding the Generated Code Output
Stream2Vault (S2V) generates a structured set of SQL scripts and Makefiles designed to facilitate the deployment and management of your Data Vault 2.0 objects in Snowflake. This document explains the organization of these generated files.
Output Directory Structure
All generated code is placed within a main output directory (e.g., GENERATED_CODE/
). This directory contains:
- An
INIT_DYNAMIC_TABLE/
(and/ orINIT_TABLE/
) folder for initialization scripts. - A
DYNAMIC_TABLE/
(and/ orTABLE/
) folder containing the SQL definitions for your Data Vault entities. - A root
Makefile
to orchestrate the deployment. - Several auxiliary CSV and JSON files providing metadata and lineage information.
Simplified Directory Tree Example
Here's a simplified view of the typical directory structure, focusing on a Hub and its Satellite to illustrate the pattern:
GENERATED_CODE/