graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hasura.Backends.MSSQL.Types.Update

Description

MSSQL Types Update

This module defines the Update-related IR types specific to MSSQL.

Synopsis

Documentation

data UpdateOperator v Source #

The various update operators supported by MSSQL, i.e. the _set, _inc operators that appear in the schema.

TODO: Docs for MSSQL! See Update Mutations User docs

Constructors

UpdateSet v 
UpdateInc v 

Instances

Instances details
Foldable UpdateOperator Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Types.Update

Methods

fold :: Monoid m => UpdateOperator m -> m #

foldMap :: Monoid m => (a -> m) -> UpdateOperator a -> m #

foldMap' :: Monoid m => (a -> m) -> UpdateOperator a -> m #

foldr :: (a -> b -> b) -> b -> UpdateOperator a -> b #

foldr' :: (a -> b -> b) -> b -> UpdateOperator a -> b #

foldl :: (b -> a -> b) -> b -> UpdateOperator a -> b #

foldl' :: (b -> a -> b) -> b -> UpdateOperator a -> b #

foldr1 :: (a -> a -> a) -> UpdateOperator a -> a #

foldl1 :: (a -> a -> a) -> UpdateOperator a -> a #

toList :: UpdateOperator a -> [a] #

null :: UpdateOperator a -> Bool #

length :: UpdateOperator a -> Int #

elem :: Eq a => a -> UpdateOperator a -> Bool #

maximum :: Ord a => UpdateOperator a -> a #

minimum :: Ord a => UpdateOperator a -> a #

sum :: Num a => UpdateOperator a -> a #

product :: Num a => UpdateOperator a -> a #

Traversable UpdateOperator Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Types.Update

Methods

traverse :: Applicative f => (a -> f b) -> UpdateOperator a -> f (UpdateOperator b) #

sequenceA :: Applicative f => UpdateOperator (f a) -> f (UpdateOperator a) #

mapM :: Monad m => (a -> m b) -> UpdateOperator a -> m (UpdateOperator b) #

sequence :: Monad m => UpdateOperator (m a) -> m (UpdateOperator a) #

Functor UpdateOperator Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Types.Update

Methods

fmap :: (a -> b) -> UpdateOperator a -> UpdateOperator b #

(<$) :: a -> UpdateOperator b -> UpdateOperator a #

Data v => Data (UpdateOperator v) Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Types.Update

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdateOperator v -> c (UpdateOperator v) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (UpdateOperator v) #

toConstr :: UpdateOperator v -> Constr #

dataTypeOf :: UpdateOperator v -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (UpdateOperator v)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (UpdateOperator v)) #

gmapT :: (forall b. Data b => b -> b) -> UpdateOperator v -> UpdateOperator v #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdateOperator v -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdateOperator v -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdateOperator v -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdateOperator v -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdateOperator v -> m (UpdateOperator v) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateOperator v -> m (UpdateOperator v) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateOperator v -> m (UpdateOperator v) #

Generic (UpdateOperator v) Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Types.Update

Associated Types

type Rep (UpdateOperator v) :: Type -> Type #

type Rep (UpdateOperator v) Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Types.Update

type Rep (UpdateOperator v) = D1 ('MetaData "UpdateOperator" "Hasura.Backends.MSSQL.Types.Update" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "UpdateSet" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 v)) :+: C1 ('MetaCons "UpdateInc" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 v)))

data Update Source #

UPDATE [table_alias] SET [table_alias].column = value OUTPUT INSERTED.column INTO #updated FROM [table_name] AS [table_alias] WHERE filter-expression