| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Hasura.Backends.MSSQL.Instances.Execute
Description
MSSQL Instances Execute
Defines a BackendExecute type class instance for MSSQL.
This module implements the needed functionality for implementing a BackendExecute
instance for MSSQL, which defines an interface for translating a root field into an execution plan
and interacting with a database.
This module includes the MSSQL implementation of queries, mutations, and more.
Synopsis
Multiplexed query
data MultiplexedQuery' Source #
Constructors
| MultiplexedQuery' | |
Fields | |
Instances
| ToTxt MultiplexedQuery' Source # | |
Defined in Hasura.Backends.MSSQL.Instances.Execute Methods toTxt :: MultiplexedQuery' -> Text Source # | |
Query
multiplexRootReselect :: [(CohortId, CohortVariables)] -> Reselect -> Select Source #
Producing the correct SQL-level list comprehension to multiplex a query Problem description:
Generate a query that repeats the same query N times but with certain slots replaced:
- Select x y | (x,y) <- [..
- ]
Caution: Be aware that this query has a FOR JSON clause at the top-level
and hence its results may be split up across multiple rows. Use
forJsonQueryE to handle this.