| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
PostgREST.DbStructure.Proc
Synopsis
- data PgArg = PgArg {}
- data PgType
- data ProcDescription = ProcDescription {
- pdSchema :: Schema
- pdName :: Text
- pdDescription :: Maybe Text
- pdArgs :: [PgArg]
- pdReturnType :: RetType
- pdVolatility :: ProcVolatility
- pdHasVariadic :: Bool
- data ProcVolatility
- type ProcsMap = HashMap QualifiedIdentifier [ProcDescription]
- data RetType
- procReturnsScalar :: ProcDescription -> Bool
- procReturnsSingle :: ProcDescription -> Bool
- procTableName :: ProcDescription -> Maybe TableName
- specifiedProcArgs :: Set FieldName -> ProcDescription -> [PgArg]
Documentation
Instances
| Eq PgArg Source # | |
| Ord PgArg Source # | |
| Generic PgArg Source # | |
| ToJSON PgArg Source # | |
Defined in PostgREST.DbStructure.Proc | |
| type Rep PgArg Source # | |
Defined in PostgREST.DbStructure.Proc type Rep PgArg = D1 ('MetaData "PgArg" "PostgREST.DbStructure.Proc" "postgrest-8.0.0-4wwkfqOKlk5GjHJ3yFP36o" 'False) (C1 ('MetaCons "PgArg" 'PrefixI 'True) ((S1 ('MetaSel ('Just "pgaName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "pgaType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "pgaReq") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "pgaVar") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) | |
Constructors
| Scalar | |
| Composite QualifiedIdentifier |
Instances
| Eq PgType Source # | |
| Ord PgType Source # | |
| Generic PgType Source # | |
| ToJSON PgType Source # | |
Defined in PostgREST.DbStructure.Proc | |
| type Rep PgType Source # | |
Defined in PostgREST.DbStructure.Proc type Rep PgType = D1 ('MetaData "PgType" "PostgREST.DbStructure.Proc" "postgrest-8.0.0-4wwkfqOKlk5GjHJ3yFP36o" 'False) (C1 ('MetaCons "Scalar" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Composite" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 QualifiedIdentifier))) | |
data ProcDescription Source #
Constructors
| ProcDescription | |
Fields
| |
Instances
data ProcVolatility Source #
Instances
type ProcsMap = HashMap QualifiedIdentifier [ProcDescription] Source #
A map of all procs, all of which can be overloaded(one entry will have more than one ProcDescription). | It uses a HashMap for a faster lookup.
Instances
| Eq RetType Source # | |
| Ord RetType Source # | |
Defined in PostgREST.DbStructure.Proc | |
| Generic RetType Source # | |
| ToJSON RetType Source # | |
Defined in PostgREST.DbStructure.Proc | |
| type Rep RetType Source # | |
Defined in PostgREST.DbStructure.Proc type Rep RetType = D1 ('MetaData "RetType" "PostgREST.DbStructure.Proc" "postgrest-8.0.0-4wwkfqOKlk5GjHJ3yFP36o" 'False) (C1 ('MetaCons "Single" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PgType)) :+: C1 ('MetaCons "SetOf" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PgType))) | |
specifiedProcArgs :: Set FieldName -> ProcDescription -> [PgArg] Source #
Search the procedure parameters by matching them with the specified keys. If the key doesn't match a parameter, a parameter with a default type "text" is assumed.