Created
June 26, 2023 20:38
-
-
Save hwayne/b27ff54cdfe0281c7ce6bf17254fc638 to your computer and use it in GitHub Desktop.
Simple ETL pipeline in Alloy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ETL pipeline | |
sig DataSource {} | |
sig Step { | |
requires: set Step | |
} | |
sig Database, File extends DataSource {} | |
sig Extract in Step { | |
from: DataSource | |
} | |
sig Load in Step { | |
to: DataSource | |
} | |
fact "dag" { | |
no iden & ^requires | |
} | |
fact "extracts are used" { | |
all e: Extract { | |
some l: Load | | |
e in l.^requires | |
} | |
} | |
run {some Load} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment