Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type SpecProgramName = Text
- type SpecProgramForYaml b = (SpecProgramName, Object -> Parser (SpecProgram b))
- newtype YamlRange a = YamlRange {}
- (-->) :: a -> b -> (a, b)
- type BackendMetaConstraints b = (MaybeDefault (YamlBackendTableMeta b), MaybeDefault (YamlBackendViewMeta b), MaybeDefault (YamlBackendMaterializedViewMeta b), FromJSON (YamlBackendTableMeta b), FromJSON (YamlBackendViewMeta b), FromJSON (YamlBackendMaterializedViewMeta b))
- parseTargetType :: forall b. BackendMetaConstraints b => Value -> Parser (SpecTarget b)
- external :: forall b. (ReifiesBackend b, ToDbBackend b) => SpecProgramForYaml b
- sql_query :: forall b. (ReifiesBackend b, ToDbBackend b, BackendMetaConstraints b) => SpecProgramForYaml b
- sql_file :: forall b. BackendMetaConstraints b => SpecProgramForYaml b
- incremental_by_pk :: forall b. (ReifiesBackend b, ToDbBackend b, BackendMetaConstraints b, Default (BackendTableMeta b)) => SpecProgramForYaml b
- incremental_by_time :: forall b. (ReifiesBackend b, ToDbBackend b, BackendMetaConstraints b, Default (BackendTableMeta b)) => SpecProgramForYaml b
- long_to_wide :: forall b. (ReifiesBackend b, ToDbBackend b, BackendMetaConstraints b) => SpecProgramForYaml b
- sqlTemplateVariables :: Member (Input MetaArguments) r => Map Text Value -> Sem r SqlTemplateVariables
Documentation
type SpecProgramName = Text #
type SpecProgramForYaml b = (SpecProgramName, Object -> Parser (SpecProgram b)) #
type BackendMetaConstraints b = (MaybeDefault (YamlBackendTableMeta b), MaybeDefault (YamlBackendViewMeta b), MaybeDefault (YamlBackendMaterializedViewMeta b), FromJSON (YamlBackendTableMeta b), FromJSON (YamlBackendViewMeta b), FromJSON (YamlBackendMaterializedViewMeta b)) #
parseTargetType :: forall b. BackendMetaConstraints b => Value -> Parser (SpecTarget b) #
external :: forall b. (ReifiesBackend b, ToDbBackend b) => SpecProgramForYaml b #
Define table with external command
external: command: ./import_table.sh arguments: [--from, staging, --table, {{{tablename}}}]
sql_query :: forall b. (ReifiesBackend b, ToDbBackend b, BackendMetaConstraints b) => SpecProgramForYaml b #
Define table with SQL query specified directly in YAML
sql_query: query: SELECT * FROM foo
sql_file :: forall b. BackendMetaConstraints b => SpecProgramForYaml b #
Define table with SQL query specified directly in YAML.
vars
is an optional object used to specify variables used in mustache interpolation.
sql_file: source: some_file.sql vars: agg: sum
incremental_by_pk :: forall b. (ReifiesBackend b, ToDbBackend b, BackendMetaConstraints b, Default (BackendTableMeta b)) => SpecProgramForYaml b #
incremental_by_time :: forall b. (ReifiesBackend b, ToDbBackend b, BackendMetaConstraints b, Default (BackendTableMeta b)) => SpecProgramForYaml b #
long_to_wide :: forall b. (ReifiesBackend b, ToDbBackend b, BackendMetaConstraints b) => SpecProgramForYaml b #
sqlTemplateVariables :: Member (Input MetaArguments) r => Map Text Value -> Sem r SqlTemplateVariables #