Safe Haskell | None |
---|---|
Language | GHC2024 |
Documentation
data CreateTableDDL #
CreateTableDDL | |
|
Instances
data InsertStatement #
Insert | |
|
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-spec-2.0.0-7NH5JHRFo7V8BQP5NCfMo1" '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)))) |
withQueryMB :: InsertStatement -> (InsertStatement -> a) -> (Query -> a) -> a #
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-spec-2.0.0-7NH5JHRFo7V8BQP5NCfMo1" 'False) (C1 ('MetaCons "ExtendedStatement" 'PrefixI 'True) (S1 ('MetaSel ('Just "ddl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CreateTableDDL) :*: S1 ('MetaSel ('Just "inserts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [InsertStatement]))) |
parseExtendedStatement :: forall (r :: EffectRow). Members '[SqlParse :: (Type -> Type) -> Type -> Type, FatalError :: (Type -> Type) -> Type -> Type] r => SourceLocation -> Text -> Sem r ExtendedStatement #