graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
LanguageHaskell2010

Hasura.Backends.Postgres.Instances.Transport

Description

Postgres Instances Transport

Defines the MSSQL instance of BackendTransport and how to interact with the database for running queries, mutations, subscriptions, and so on.

Documentation

runPGQuery Source #

Arguments

:: (MonadIO m, MonadError QErr m, MonadQueryLog m, MonadTrace m) 
=> RequestId 
-> GQLReqUnparsed 
-> RootFieldAlias 
-> UserInfo 
-> Logger Hasura 
-> SourceConfig ('Postgres pgKind) 
-> TraceT (TxET QErr IO) EncJSON 
-> Maybe PreparedSql 
-> m (DiffTime, EncJSON)

Also return the time spent in the PG query; for telemetry.

runPGQueryExplain :: forall pgKind m. (MonadIO m, MonadError QErr m) => DBStepInfo ('Postgres pgKind) -> m EncJSON Source #

Orphan instances