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

Hasura.Backends.MSSQL.Plan

Description

MSSQL Plan

Planning T-SQL queries and subscription by translating IR to MSSQL-specific SQL query types.

Synopsis

Documentation

planSourceRelationship Source #

Arguments

:: MonadError QErr m 
=> SessionVariables 
-> NonEmpty Object

List of json objects, each of which becomes a row of the table

-> HashMap FieldName (ColumnName, ScalarType)

The above objects have this schema

-> FieldName 
-> (FieldName, SourceRelationshipSelection 'MSSQL Void UnpreparedValue) 
-> m Select 

For more information, see the module/documentation of Source.

prepareValueQuery :: MonadError QErr m => SessionVariables -> UnpreparedValue 'MSSQL -> m Expression Source #

Prepare a value without any query planning; we just execute the query with the values embedded.

collapseMap :: InsOrdHashMap Name Select -> Reselect Source #

Collapse a set of selects into a single select that projects these as subselects.

prepareValueSubscription :: (MonadState PrepareState m, MonadError QErr m) => HashSet SessionVariable -> UnpreparedValue 'MSSQL -> m Expression Source #

Prepare a value for multiplexed queries.

rowAlias :: Text Source #