napkin-0.5.11
Safe HaskellNone
LanguageHaskell2010

Napkin.Spec.Yaml.Types

Documentation

data YamlSpec b #

Constructors

YamlSpec 

Fields

Instances

Instances details
(Eq (DbBackendOptions b), Eq (BackendTableMeta b), Typeable b) => Eq (YamlSpec b) # 
Instance details

Defined in Napkin.Spec.Yaml.Types

Methods

(==) :: YamlSpec b -> YamlSpec b -> Bool #

(/=) :: YamlSpec b -> YamlSpec b -> Bool #

(Show (DbBackendOptions b), Show (BackendTableMeta b), Typeable b) => Show (YamlSpec b) # 
Instance details

Defined in Napkin.Spec.Yaml.Types

Methods

showsPrec :: Int -> YamlSpec b -> ShowS #

show :: YamlSpec b -> String #

showList :: [YamlSpec b] -> ShowS #

Generic (YamlSpec b) # 
Instance details

Defined in Napkin.Spec.Yaml.Types

Associated Types

type Rep (YamlSpec b) :: Type -> Type #

Methods

from :: YamlSpec b -> Rep (YamlSpec b) x #

to :: Rep (YamlSpec b) x -> YamlSpec b #

(ToDbBackend b, Typeable b, ToJSON (YamlBackendTableMeta b), ToJSON (DbBackendOptions b)) => ToJSON (YamlSpec b) # 
Instance details

Defined in Napkin.Spec.Yaml.Types

(ToDbBackend b, Typeable b, FromJSON (DbBackendOptions b), Default (BackendTableMeta b), FromJSON (YamlBackendTableMeta b), Default (DbBackendOptions b), ReifiesBackend b) => FromJSON (YamlSpec b) # 
Instance details

Defined in Napkin.Spec.Yaml.Types

type Rep (YamlSpec b) # 
Instance details

Defined in Napkin.Spec.Yaml.Types

type Rep (YamlSpec b) = D1 ('MetaData "YamlSpec" "Napkin.Spec.Yaml.Types" "napkin-0.5.11-LzNtVzWpCFCrZQk4T3eyK" 'False) (C1 ('MetaCons "YamlSpec" 'PrefixI 'True) (((S1 ('MetaSel ('Just "_yamlSpec_appName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe AppName)) :*: (S1 ('MetaSel ('Just "_yamlSpec_sqlFolder") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath) :*: S1 ('MetaSel ('Just "_yamlSpec_connectionURL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String))) :*: ((S1 ('MetaSel ('Just "_yamlSpec_metadataConnectionURL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ConnectionString)) :*: S1 ('MetaSel ('Just "_yamlSpec_haskellFolder") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath)) :*: (S1 ('MetaSel ('Just "_yamlSpec_tableSpecs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map (Ref Table) (YamlTableSpec b))) :*: S1 ('MetaSel ('Just "_yamlSpec_backend") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (DbBackendOptions b))))) :*: (((S1 ('MetaSel ('Just "_yamlSpec_parserDialect") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SQLDialect) :*: S1 ('MetaSel ('Just "_yamlSpec_specPreprocessors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [YamlPreprocessor b])) :*: (S1 ('MetaSel ('Just "_yamlSpec_validator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Typed CustomValidator ModuleFunction))) :*: S1 ('MetaSel ('Just "_yamlSpec_extraHaskellPackages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Package]))) :*: ((S1 ('MetaSel ('Just "_yamlSpec_extraHaskellModules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Module]) :*: S1 ('MetaSel ('Just "_yamlSpec_defaultHaskellLanguageExtensions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [YamlHaskellExtension])) :*: (S1 ('MetaSel ('Just "_yamlSpec_haskellSpec") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Typed (Spec b ()) ModuleFunction))) :*: S1 ('MetaSel ('Just "_yamlSpec_functionMacros") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Typed ExternMacros ModuleFunction))))))))

dbBackend :: forall b. ToDbBackend b => YamlSpec b -> DbBackend #

newtype YamlBackendTableMeta b #

Instances

Instances details
(Eq (BackendTableMeta b), Typeable b) => Eq (YamlBackendTableMeta b) # 
Instance details

Defined in Napkin.Spec.Yaml.Types

(Show (BackendTableMeta b), Typeable b) => Show (YamlBackendTableMeta b) # 
Instance details

Defined in Napkin.Spec.Yaml.Types

ToJSON (YamlBackendTableMeta Sqlite) # 
Instance details

Defined in Napkin.Spec.Yaml.Types

ToJSON (YamlBackendTableMeta Redshift) # 
Instance details

Defined in Napkin.Spec.Yaml.Types

ToJSON (YamlBackendTableMeta Postgres) # 
Instance details

Defined in Napkin.Spec.Yaml.Types

ToJSON (YamlBackendTableMeta BigQuery) # 
Instance details

Defined in Napkin.Spec.Yaml.Types

FromJSON (YamlBackendTableMeta Sqlite) # 
Instance details

Defined in Napkin.Spec.Yaml.Types

FromJSON (YamlBackendTableMeta Redshift) # 
Instance details

Defined in Napkin.Spec.Yaml.Types

FromJSON (YamlBackendTableMeta Postgres) # 
Instance details

Defined in Napkin.Spec.Yaml.Types

FromJSON (YamlBackendTableMeta BigQuery) # 
Instance details

Defined in Napkin.Spec.Yaml.Types

Default (BackendTableMeta b) => Default (YamlBackendTableMeta b) # 
Instance details

Defined in Napkin.Spec.Yaml.Types

parseSExp :: forall b. ToDbBackend b => Value -> Parser SExp #

Orphan instances

ToJSON SortKey # 
Instance details

ToJSON SortStyle # 
Instance details

ToJSON DistStyle # 
Instance details

ToJSON WriteDisposition # 
Instance details

ToJSON Partitioning # 
Instance details

ToJSON RangeWithStep # 
Instance details

ToJSON DbBackend # 
Instance details

ToJSON UpdateStrategy # 
Instance details

FromJSON SortKey # 
Instance details

FromJSON SortStyle # 
Instance details

FromJSON DistStyle # 
Instance details

FromJSON WriteDisposition # 
Instance details

FromJSON Partitioning # 
Instance details

FromJSON RangeWithStep # 
Instance details

FromJSON DbBackend # 
Instance details

FromJSON UpdateStrategy # 
Instance details