graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
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.