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

Hasura.Backends.MSSQL.Instances.Schema

Description

MSSQL Instances Schema

Defines a BackendSchema type class instance for MSSQL.

Synopsis

BackendSchema instance

Top level parsers

Table arguments

Individual components

Orphan instances

BackendTableSelectSchema 'MSSQL Source # 
Instance details

Methods

tableArguments :: forall r m (n :: Type -> Type). MonadBuildSchemaBase r m n => SourceInfo 'MSSQL -> TableInfo 'MSSQL -> m (InputFieldsParser n (SelectArgsG 'MSSQL (UnpreparedValue 'MSSQL))) Source #

tableSelectionSet :: forall r m (n :: Type -> Type). MonadBuildSchemaBase r m n => SourceInfo 'MSSQL -> TableInfo 'MSSQL -> m (Maybe (Parser 'Output n (AnnotatedFields 'MSSQL))) Source #

selectTable :: forall r m (n :: Type -> Type). MonadBuildSchemaBase r m n => SourceInfo 'MSSQL -> TableInfo 'MSSQL -> Name -> Maybe Description -> m (Maybe (FieldParser n (SelectExp 'MSSQL))) Source #

selectTableAggregate :: forall r m (n :: Type -> Type). MonadBuildSchemaBase r m n => SourceInfo 'MSSQL -> TableInfo 'MSSQL -> Name -> Maybe Description -> m (Maybe (FieldParser n (AggSelectExp 'MSSQL))) Source #

BackendSchema 'MSSQL Source # 
Instance details

Methods

buildTableQueryAndSubscriptionFields :: forall r m (n :: Type -> Type). MonadBuildSchema 'MSSQL r m n => MkRootFieldName -> SourceInfo 'MSSQL -> TableName 'MSSQL -> TableInfo 'MSSQL -> GQLNameIdentifier -> m ([FieldParser n (QueryDB 'MSSQL (RemoteRelationshipField UnpreparedValue) (UnpreparedValue 'MSSQL))], [FieldParser n (QueryDB 'MSSQL (RemoteRelationshipField UnpreparedValue) (UnpreparedValue 'MSSQL))], Maybe (Name, Parser 'Output n (ApolloFederationParserFunction n))) Source #

buildTableStreamingSubscriptionFields :: forall r m (n :: Type -> Type). MonadBuildSchema 'MSSQL r m n => MkRootFieldName -> SourceInfo 'MSSQL -> TableName 'MSSQL -> TableInfo 'MSSQL -> GQLNameIdentifier -> m [FieldParser n (QueryDB 'MSSQL (RemoteRelationshipField UnpreparedValue) (UnpreparedValue 'MSSQL))] Source #

buildTableRelayQueryFields :: forall r m (n :: Type -> Type). MonadBuildSchema 'MSSQL r m n => MkRootFieldName -> SourceInfo 'MSSQL -> TableName 'MSSQL -> TableInfo 'MSSQL -> GQLNameIdentifier -> NESeq (ColumnInfo 'MSSQL) -> m [FieldParser n (QueryDB 'MSSQL (RemoteRelationshipField UnpreparedValue) (UnpreparedValue 'MSSQL))] Source #

buildTableInsertMutationFields :: forall r m (n :: Type -> Type). MonadBuildSchema 'MSSQL r m n => MkRootFieldName -> Scenario -> SourceInfo 'MSSQL -> TableName 'MSSQL -> TableInfo 'MSSQL -> GQLNameIdentifier -> m [FieldParser n (AnnotatedInsert 'MSSQL (RemoteRelationshipField UnpreparedValue) (UnpreparedValue 'MSSQL))] Source #

buildTableUpdateMutationFields :: forall r m (n :: Type -> Type). MonadBuildSchema 'MSSQL r m n => MkRootFieldName -> Scenario -> SourceInfo 'MSSQL -> TableName 'MSSQL -> TableInfo 'MSSQL -> GQLNameIdentifier -> m [FieldParser n (AnnotatedUpdateG 'MSSQL (RemoteRelationshipField UnpreparedValue) (UnpreparedValue 'MSSQL))] Source #

buildTableDeleteMutationFields :: forall r m (n :: Type -> Type). MonadBuildSchema 'MSSQL r m n => MkRootFieldName -> Scenario -> SourceInfo 'MSSQL -> TableName 'MSSQL -> TableInfo 'MSSQL -> GQLNameIdentifier -> m [FieldParser n (AnnDelG 'MSSQL (RemoteRelationshipField UnpreparedValue) (UnpreparedValue 'MSSQL))] Source #

buildFunctionQueryFields :: forall r m (n :: Type -> Type). MonadBuildSchema 'MSSQL r m n => MkRootFieldName -> SourceInfo 'MSSQL -> FunctionName 'MSSQL -> FunctionInfo 'MSSQL -> TableName 'MSSQL -> m [FieldParser n (QueryDB 'MSSQL (RemoteRelationshipField UnpreparedValue) (UnpreparedValue 'MSSQL))] Source #

buildFunctionRelayQueryFields :: forall r m (n :: Type -> Type). MonadBuildSchema 'MSSQL r m n => MkRootFieldName -> SourceInfo 'MSSQL -> FunctionName 'MSSQL -> FunctionInfo 'MSSQL -> TableName 'MSSQL -> NESeq (ColumnInfo 'MSSQL) -> m [FieldParser n (QueryDB 'MSSQL (RemoteRelationshipField UnpreparedValue) (UnpreparedValue 'MSSQL))] Source #

buildFunctionMutationFields :: forall r m (n :: Type -> Type). MonadBuildSchema 'MSSQL r m n => MkRootFieldName -> SourceInfo 'MSSQL -> FunctionName 'MSSQL -> FunctionInfo 'MSSQL -> TableName 'MSSQL -> m [FieldParser n (MutationDB 'MSSQL (RemoteRelationshipField UnpreparedValue) (UnpreparedValue 'MSSQL))] Source #

mkRelationshipParser :: forall r m (n :: Type -> Type). MonadBuildSchema 'MSSQL r m n => SourceInfo 'MSSQL -> RelInfo 'MSSQL -> m (Maybe (InputFieldsParser n (Maybe (AnnotatedInsertField 'MSSQL (UnpreparedValue 'MSSQL))))) Source #

relayExtension :: Maybe (XRelay 'MSSQL) Source #

nodesAggExtension :: Maybe (XNodesAgg 'MSSQL) Source #

streamSubscriptionExtension :: Maybe (XStreamingSubscription 'MSSQL) Source #

columnParser :: forall (n :: Type -> Type) m r. (MonadParse n, MonadError QErr m, MonadReader r m, Has MkTypename r, Has NamingCase r) => ColumnType 'MSSQL -> Nullability -> m (Parser 'Both n (ValueWithOrigin (ColumnValue 'MSSQL))) Source #

scalarSelectionArgumentsParser :: forall (n :: Type -> Type). MonadParse n => ColumnType 'MSSQL -> InputFieldsParser n (Maybe (ScalarSelectionArguments 'MSSQL)) Source #

orderByOperators :: SourceInfo 'MSSQL -> NamingCase -> (Name, NonEmpty (Definition EnumValueInfo, (BasicOrderType 'MSSQL, NullsOrderType 'MSSQL))) Source #

comparisonExps :: forall r m (n :: Type -> Type). MonadBuildSchema 'MSSQL r m n => ColumnType 'MSSQL -> m (Parser 'Input n [ComparisonExp 'MSSQL]) Source #

countTypeInput :: forall (n :: Type -> Type). MonadParse n => Maybe (Parser 'Both n (Column 'MSSQL)) -> InputFieldsParser n (CountDistinct -> CountType 'MSSQL) Source #

aggregateOrderByCountType :: ScalarType 'MSSQL Source #

computedField :: forall r m (n :: Type -> Type). MonadBuildSchema 'MSSQL r m n => SourceInfo 'MSSQL -> ComputedFieldInfo 'MSSQL -> TableName 'MSSQL -> TableInfo 'MSSQL -> m (Maybe (FieldParser n (AnnotatedField 'MSSQL))) Source #