Safe Haskell | None |
---|---|
Language | GHC2021 |
Documentation
data CreateTableDDL #
CreateTableDDL | |
|
Instances
data InsertStatement #
Instances
Generic InsertStatement # | |||||
Defined in Napkin.Run.Effects.Languages.StatementParse
from :: InsertStatement -> Rep InsertStatement x # to :: Rep InsertStatement x -> InsertStatement # | |||||
Show InsertStatement # | |||||
Defined in Napkin.Run.Effects.Languages.StatementParse showsPrec :: Int -> InsertStatement -> ShowS # show :: InsertStatement -> String # showList :: [InsertStatement] -> ShowS # | |||||
Eq InsertStatement # | |||||
Defined in Napkin.Run.Effects.Languages.StatementParse (==) :: InsertStatement -> InsertStatement -> Bool # (/=) :: InsertStatement -> InsertStatement -> Bool # | |||||
Stateable InsertStatement # | |||||
Defined in Napkin.Run.Effects.Languages.StatementParse toStatement :: InsertStatement -> Statement # fromStatement :: forall (r :: EffectRow). Members '[SqlParse :: (Type -> Type) -> Type -> Type, FatalError :: (Type -> Type) -> Type -> Type] r => Statement -> Sem r InsertStatement # | |||||
type Rep InsertStatement # | |||||
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))))) |
toQueryMB :: InsertStatement -> Maybe Query #
withQueryMB :: InsertStatement -> (InsertStatement -> a) -> (Query -> a) -> a #
sourceToQueryMB :: InsertSource -> Maybe Query #
data ExtendedStatement #
Instances
Generic ExtendedStatement # | |||||
Defined in Napkin.Run.Effects.Languages.StatementParse
from :: ExtendedStatement -> Rep ExtendedStatement x # to :: Rep ExtendedStatement x -> ExtendedStatement # | |||||
Show ExtendedStatement # | |||||
Defined in Napkin.Run.Effects.Languages.StatementParse showsPrec :: Int -> ExtendedStatement -> ShowS # show :: ExtendedStatement -> String # showList :: [ExtendedStatement] -> ShowS # | |||||
Eq ExtendedStatement # | |||||
Defined in Napkin.Run.Effects.Languages.StatementParse (==) :: ExtendedStatement -> ExtendedStatement -> Bool # (/=) :: ExtendedStatement -> ExtendedStatement -> Bool # | |||||
type Rep ExtendedStatement # | |||||
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 #
parseExtendedStatement :: forall (r :: EffectRow). Members '[SqlParse :: (Type -> Type) -> Type -> Type, FatalError :: (Type -> Type) -> Type -> Type] r => SourceLocation -> Text -> Sem r ExtendedStatement #