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

Hasura.Backends.MySQL.ToQuery

Description

Convert the simple AST to an SQL query, ready to be passed to the mysql package's query/exec functions.

Synopsis

Documentation

newtype Query Source #

Constructors

Query 

Fields

Instances

Instances details
Eq Query Source # 
Instance details

Defined in Hasura.Backends.MySQL.ToQuery

Methods

(==) :: Query -> Query -> Bool #

(/=) :: Query -> Query -> Bool #

Show Query Source # 
Instance details

Defined in Hasura.Backends.MySQL.ToQuery

Methods

showsPrec :: Int -> Query -> ShowS #

show :: Query -> String #

showList :: [Query] -> ShowS #

Semigroup Query Source # 
Instance details

Defined in Hasura.Backends.MySQL.ToQuery

Methods

(<>) :: Query -> Query -> Query #

sconcat :: NonEmpty Query -> Query #

stimes :: Integral b => b -> Query -> Query #

Monoid Query Source # 
Instance details

Defined in Hasura.Backends.MySQL.ToQuery

Methods

mempty :: Query #

mappend :: Query -> Query -> Query #

mconcat :: [Query] -> Query #

renderBuilderPretty :: Printer -> (Builder, InsOrdHashMap Int ScalarValue) Source #

Produces a query with holes, and a mapping for each

runBuilderPretty :: Printer -> State (InsOrdHashMap ScalarValue Int) Builder Source #