Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data SourceConfigWith (db :: BackendType -> Type) (b :: BackendType) = SourceConfigWith (SourceConfig b) (Maybe QueryTagsConfig) (db b)
- data RootField (db :: BackendType -> Type) remote action raw where
- RFDB :: SourceName -> AnyBackend (SourceConfigWith db) -> RootField db remote action raw
- RFRemote :: remote -> RootField db remote action raw
- RFAction :: action -> RootField db remote action raw
- RFRaw :: raw -> RootField db remote action raw
- RFMulti :: [RootField db remote action raw] -> RootField db remote action raw
- data MutationDB (b :: BackendType) (r :: Type) v
- = MDBInsert (AnnotatedInsert b r v)
- | MDBUpdate (AnnotatedUpdateG b r v)
- | MDBDelete (AnnDelG b r v)
- | MDBFunction JsonAggSelect (AnnSimpleSelectG b r v)
- data ActionQuery (r :: Type)
- = AQQuery (AnnActionExecution r)
- | AQAsync (AnnActionAsyncQuery ('Postgres 'Vanilla) r)
- data ActionMutation (r :: Type)
- newtype QueryDBRoot r v b = QDBR (QueryDB b r (v b))
- newtype MutationDBRoot r v b = MDBR (MutationDB b r (v b))
- data RemoteRelationshipField vf
- type QueryActionRoot v = ActionQuery (RemoteRelationshipField v)
- type MutationActionRoot v = ActionMutation (RemoteRelationshipField v)
- type QueryRootField v = RootField (QueryDBRoot (RemoteRelationshipField v) v) (RemoteSchemaRootField (RemoteRelationshipField v) RemoteSchemaVariable) (QueryActionRoot v) Value
- type MutationRootField v = RootField (MutationDBRoot (RemoteRelationshipField v) v) (RemoteSchemaRootField (RemoteRelationshipField v) RemoteSchemaVariable) (MutationActionRoot v) Value
- type SubscriptionRootField v = RootField (QueryDBRoot (RemoteRelationshipField v) v) (RemoteSchemaRootField (RemoteRelationshipField v) RemoteSchemaVariable) (QueryActionRoot v) Value
Documentation
data SourceConfigWith (db :: BackendType -> Type) (b :: BackendType) Source #
SourceConfigWith (SourceConfig b) (Maybe QueryTagsConfig) (db b) |
data RootField (db :: BackendType -> Type) remote action raw where Source #
RFDB :: SourceName -> AnyBackend (SourceConfigWith db) -> RootField db remote action raw | |
RFRemote :: remote -> RootField db remote action raw | |
RFAction :: action -> RootField db remote action raw | |
RFRaw :: raw -> RootField db remote action raw | |
RFMulti :: [RootField db remote action raw] -> RootField db remote action raw |
data MutationDB (b :: BackendType) (r :: Type) v Source #
MDBInsert (AnnotatedInsert b r v) | |
MDBUpdate (AnnotatedUpdateG b r v) | |
MDBDelete (AnnDelG b r v) | |
MDBFunction JsonAggSelect (AnnSimpleSelectG b r v) | This represents a VOLATILE function, and is AnnSimpleSelG for easy re-use of non-VOLATILE function tracking code. |
Instances
data ActionQuery (r :: Type) Source #
AQQuery (AnnActionExecution r) | |
AQAsync (AnnActionAsyncQuery ('Postgres 'Vanilla) r) |
Instances
data ActionMutation (r :: Type) Source #
newtype QueryDBRoot r v b Source #
newtype MutationDBRoot r v b Source #
MDBR (MutationDB b r (v b)) |
data RemoteRelationshipField vf Source #
IR of a remote relationship. A remote relationship currently can be to
either a remote schema or a database's table. See RemoteSourceSelect for
explanation on vf
.
RemoteSchemaField (RemoteSchemaSelect (RemoteRelationshipField vf)) | |
RemoteSourceField (AnyBackend (RemoteSourceSelect (RemoteRelationshipField vf) vf)) | AnyBackend is used here to capture a relationship to an arbitrary target |
type QueryActionRoot v = ActionQuery (RemoteRelationshipField v) Source #
Represents a query root field to an action
type MutationActionRoot v = ActionMutation (RemoteRelationshipField v) Source #
Represents a mutation root field to an action
type QueryRootField v = RootField (QueryDBRoot (RemoteRelationshipField v) v) (RemoteSchemaRootField (RemoteRelationshipField v) RemoteSchemaVariable) (QueryActionRoot v) Value Source #