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

Hasura.SQL.Types

Synopsis

Documentation

class ToSQL a where Source #

Methods

toSQL :: a -> Builder Source #

Instances

Instances details
ToSQL BinOp Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: BinOp -> Builder Source #

ToSQL BoolExp Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL CompareOp Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL DistinctExpr Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL Extractor Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL FromExp Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL FromItem Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL FunctionAlias Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL FunctionArgs Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL FunctionDefinitionListItem Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL FunctionExp Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL GroupByExp Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL HavingExp Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL JoinCond Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL JoinExpr Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL JoinType Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL Lateral Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL LimitExp Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL NullsOrder Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL OffsetExp Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL OrderByExp Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL OrderByItem Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL OrderType Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL QIdentifier Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL Qual Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: Qual -> Builder Source #

ToSQL RetExp Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: RetExp -> Builder Source #

ToSQL SQLConflict Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL SQLConflictTarget Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL SQLDelete Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL SQLExp Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: SQLExp -> Builder Source #

ToSQL SQLInsert Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL SQLUpdate Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL Select Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: Select -> Builder Source #

ToSQL SetExp Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: SetExp -> Builder Source #

ToSQL SetExpItem Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL TopLevelCTE Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL TupleExp Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL TypeAnn Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL ValuesExp Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL WhereFrag Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL ColumnIdentifier Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.Types

ToSQL ConstraintName Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.Types

ToSQL FunctionName Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.Types

ToSQL Identifier Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.Types

ToSQL PGCol Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.Types

Methods

toSQL :: PGCol -> Builder Source #

ToSQL PGScalarType Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.Types

ToSQL SchemaName Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.Types

ToSQL TableIdentifier Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.Types

ToSQL TableName Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.Types

ToSQL Builder Source # 
Instance details

Defined in Hasura.SQL.Types

ToSQL (CountType QIdentifier) Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL v => ToSQL (SelectWithG v) Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL a => ToSQL (QualifiedObject a) Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.Types

ToSQL a => ToSQL (CollectableType a) Source # 
Instance details

Defined in Hasura.SQL.Types

ToSQL a => ToSQL (Maybe a) Source # 
Instance details

Defined in Hasura.SQL.Types

Methods

toSQL :: Maybe a -> Builder Source #

toSQLTxt :: ToSQL a => a -> Text Source #

data CollectableType a Source #

The type of all Postgres types (i.e. scalars and arrays). This type is parameterized so that we can have both CollectableType PGScalarType and CollectableType PGColumnType, for when we care about the distinction made by PGColumnType. If we ever change PGColumnType to handle arrays, not just scalars, then the parameterization can go away.

TODO (from master): This is incorrect modeling, as PGScalarType will capture anything (under PGUnknown). This should be fixed when support for all types is merged.

Instances

Instances details
Functor CollectableType Source # 
Instance details

Defined in Hasura.SQL.Types

Methods

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

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

FromJSON a => FromJSON (CollectableType a) Source # 
Instance details

Defined in Hasura.SQL.Types

ToJSON a => ToJSON (CollectableType a) Source # 
Instance details

Defined in Hasura.SQL.Types

Data a => Data (CollectableType a) Source # 
Instance details

Defined in Hasura.SQL.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CollectableType a -> c (CollectableType a) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (CollectableType a) #

toConstr :: CollectableType a -> Constr #

dataTypeOf :: CollectableType a -> DataType #

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

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

gmapT :: (forall b. Data b => b -> b) -> CollectableType a -> CollectableType a #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CollectableType a -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CollectableType a -> r #

gmapQ :: (forall d. Data d => d -> u) -> CollectableType a -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CollectableType a -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CollectableType a -> m (CollectableType a) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CollectableType a -> m (CollectableType a) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CollectableType a -> m (CollectableType a) #

Generic (CollectableType a) Source # 
Instance details

Defined in Hasura.SQL.Types

Associated Types

type Rep (CollectableType a) :: Type -> Type #

Show a => Show (CollectableType a) Source # 
Instance details

Defined in Hasura.SQL.Types

NFData a => NFData (CollectableType a) Source # 
Instance details

Defined in Hasura.SQL.Types

Methods

rnf :: CollectableType a -> () #

Eq a => Eq (CollectableType a) Source # 
Instance details

Defined in Hasura.SQL.Types

ToSQL a => ToSQL (CollectableType a) Source # 
Instance details

Defined in Hasura.SQL.Types

Hashable a => Hashable (CollectableType a) Source # 
Instance details

Defined in Hasura.SQL.Types

type Rep (CollectableType a) Source # 
Instance details

Defined in Hasura.SQL.Types

type Rep (CollectableType a) = D1 ('MetaData "CollectableType" "Hasura.SQL.Types" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "CollectableTypeScalar" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a)) :+: C1 ('MetaCons "CollectableTypeArray" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a)))

newtype ExtensionsSchema Source #

The name of the schema in which the graphql-engine will install database extensions.

Constructors

ExtensionsSchema 

Instances

Instances details
FromJSON ExtensionsSchema Source # 
Instance details

Defined in Hasura.SQL.Types

ToJSON ExtensionsSchema Source # 
Instance details

Defined in Hasura.SQL.Types

HasCodec ExtensionsSchema Source # 
Instance details

Defined in Hasura.SQL.Types

Show ExtensionsSchema Source # 
Instance details

Defined in Hasura.SQL.Types

NFData ExtensionsSchema Source # 
Instance details

Defined in Hasura.SQL.Types

Methods

rnf :: ExtensionsSchema -> () #

Eq ExtensionsSchema Source # 
Instance details

Defined in Hasura.SQL.Types

FromEnv ExtensionsSchema Source # 
Instance details

Defined in Hasura.Server.Init.Env

Hashable ExtensionsSchema Source # 
Instance details

Defined in Hasura.SQL.Types