napkin-1.0.0
Safe HaskellNone
LanguageGHC2021

Napkin.Run.Effects.Languages.StatementParse

Documentation

data CreateTableDDL #

Constructors

CreateTableDDL 

Instances

Instances details
Generic CreateTableDDL # 
Instance details

Defined in Napkin.Run.Effects.Languages.StatementParse

Associated Types

type Rep CreateTableDDL 
Instance details

Defined in Napkin.Run.Effects.Languages.StatementParse

type Rep CreateTableDDL = D1 ('MetaData "CreateTableDDL" "Napkin.Run.Effects.Languages.StatementParse" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "CreateTableDDL" 'PrefixI 'True) (S1 ('MetaSel ('Just "names") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty Name)) :*: S1 ('MetaSel ('Just "columns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TableElement])))
Show CreateTableDDL # 
Instance details

Defined in Napkin.Run.Effects.Languages.StatementParse

Eq CreateTableDDL # 
Instance details

Defined in Napkin.Run.Effects.Languages.StatementParse

Stateable CreateTableDDL # 
Instance details

Defined in Napkin.Run.Effects.Languages.StatementParse

type Rep CreateTableDDL # 
Instance details

Defined in Napkin.Run.Effects.Languages.StatementParse

type Rep CreateTableDDL = D1 ('MetaData "CreateTableDDL" "Napkin.Run.Effects.Languages.StatementParse" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "CreateTableDDL" 'PrefixI 'True) (S1 ('MetaSel ('Just "names") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty Name)) :*: S1 ('MetaSel ('Just "columns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TableElement])))

data InsertStatement #

Instances

Instances details
Generic InsertStatement # 
Instance details

Defined in Napkin.Run.Effects.Languages.StatementParse

Associated Types

type Rep InsertStatement 
Instance details

Defined in Napkin.Run.Effects.Languages.StatementParse

type Rep InsertStatement = D1 ('MetaData "InsertStatement" "Napkin.Run.Effects.Languages.StatementParse" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "Insert" 'PrefixI 'True) ((S1 ('MetaSel ('Just "names") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty Name)) :*: S1 ('MetaSel ('Just "columnNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [Name]))) :*: (S1 ('MetaSel ('Just "source") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InsertSource) :*: S1 ('MetaSel ('Just "queryMB") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Query)))))
Show InsertStatement # 
Instance details

Defined in Napkin.Run.Effects.Languages.StatementParse

Eq InsertStatement # 
Instance details

Defined in Napkin.Run.Effects.Languages.StatementParse

Stateable InsertStatement # 
Instance details

Defined in Napkin.Run.Effects.Languages.StatementParse

type Rep InsertStatement # 
Instance details

Defined in Napkin.Run.Effects.Languages.StatementParse

type Rep InsertStatement = D1 ('MetaData "InsertStatement" "Napkin.Run.Effects.Languages.StatementParse" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "Insert" 'PrefixI 'True) ((S1 ('MetaSel ('Just "names") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty Name)) :*: S1 ('MetaSel ('Just "columnNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [Name]))) :*: (S1 ('MetaSel ('Just "source") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InsertSource) :*: S1 ('MetaSel ('Just "queryMB") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Query)))))

withQueryMB :: InsertStatement -> (InsertStatement -> a) -> (Query -> a) -> a #

data ExtendedStatement #

Instances

Instances details
Generic ExtendedStatement # 
Instance details

Defined in Napkin.Run.Effects.Languages.StatementParse

Associated Types

type Rep ExtendedStatement 
Instance details

Defined in Napkin.Run.Effects.Languages.StatementParse

type Rep ExtendedStatement = D1 ('MetaData "ExtendedStatement" "Napkin.Run.Effects.Languages.StatementParse" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "ExtendedStatement" 'PrefixI 'True) (S1 ('MetaSel ('Just "ddlMB") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CreateTableDDL) :*: S1 ('MetaSel ('Just "inserts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [InsertStatement])))
Show ExtendedStatement # 
Instance details

Defined in Napkin.Run.Effects.Languages.StatementParse

Eq ExtendedStatement # 
Instance details

Defined in Napkin.Run.Effects.Languages.StatementParse

type Rep ExtendedStatement # 
Instance details

Defined in Napkin.Run.Effects.Languages.StatementParse

type Rep ExtendedStatement = D1 ('MetaData "ExtendedStatement" "Napkin.Run.Effects.Languages.StatementParse" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "ExtendedStatement" 'PrefixI 'True) (S1 ('MetaSel ('Just "ddlMB") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CreateTableDDL) :*: S1 ('MetaSel ('Just "inserts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [InsertStatement])))

toCreateTableDDL :: forall (r :: EffectRow). Members '[SqlParse :: (Type -> Type) -> Type -> Type, FatalError :: (Type -> Type) -> Type -> Type] r => Statement -> Sem r CreateTableDDL #

toInsertStatement :: forall (r :: EffectRow). Members '[SqlParse :: (Type -> Type) -> Type -> Type, FatalError :: (Type -> Type) -> Type -> Type] r => Statement -> Sem r InsertStatement #