Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Hasura.Backends.Postgres.Instances.Execute
Contents
Description
Postgres Instances Execute
This module implements the needed functionality for implementing a BackendExecute
instance for Postgres, which defines an interface for translating a root field into
an execution plan and interacting with a database.
This module includes the Postgres implementation of queries, mutations, and more.
Synopsis
- data PreparedSql = PreparedSql {}
- pgDBQueryPlanSimple :: MonadError QErr m => UserInfo -> QueryTagsComment -> QueryDB ('Postgres 'Vanilla) Void (UnpreparedValue ('Postgres 'Vanilla)) -> m (OnBaseMonad (TxET QErr) EncJSON, Maybe PreparedSql)
Documentation
data PreparedSql Source #
Constructors
PreparedSql | |
Fields
|
Instances
Show PreparedSql Source # | |
Defined in Hasura.Backends.Postgres.Instances.Execute Methods showsPrec :: Int -> PreparedSql -> ShowS # show :: PreparedSql -> String # showList :: [PreparedSql] -> ShowS # |
pgDBQueryPlanSimple :: MonadError QErr m => UserInfo -> QueryTagsComment -> QueryDB ('Postgres 'Vanilla) Void (UnpreparedValue ('Postgres 'Vanilla)) -> m (OnBaseMonad (TxET QErr) EncJSON, Maybe PreparedSql) Source #
Used by the @dc-postgres-agent to compile a query.