napkin-0.5.12
Safe HaskellNone
LanguageHaskell2010

Napkin.Spec.Yaml.Types.Preprocessors

Synopsis

Documentation

(-->) :: a -> b -> (a, b) #

table_prefix :: forall b. PreprocessorForYaml b #

Add table name prefix to all managed tables

table_prefix:
 value: development # allows to set default, preprocessor will fail if the value has not been provided
 override_with_arg: table_prefix # allows to override argument name used to set table prefix
 separator: _ # will insert that separator if prefix is not empty, defaults to empty
 scope: managed # optional, all | managed (default) | unmanaged

Example usage: > table_prefix: > override_with_arg: developer > separator: _

table_namespace :: forall b. PreprocessorForYaml b #

Move all managed tables into schema (postgres) or dataset (BigQuery)

table_namespace:
 value: development # allows to set default, preprocessor will fail if the value has not been provided
 override_with_arg: table_namespace # allows to override argument name used to set table namespace
 scope: managed # optional, all | managed (default) | unmanaged
 on_existing: overwrite # optional, overwrite (default) or keep_original

autodiscover :: forall b. Default (BackendTableMeta b) => PreprocessorForYaml b #

Define tables automatically in a SQL dir.

autodiscover