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

Hasura.SQL.Types

Synopsis

Documentation

class ToSQL a where Source #

Methods

toSQL :: a -> Builder Source #

Instances

Instances details
ToSQL Builder Source # 
Instance details

Defined in Hasura.SQL.Types

Methods

toSQL :: Builder -> Builder Source #

ToSQL PGScalarType Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.Types

Methods

toSQL :: PGScalarType -> Builder Source #

ToSQL PGCol Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.Types

Methods

toSQL :: PGCol -> Builder Source #

ToSQL SchemaName Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.Types

Methods

toSQL :: SchemaName -> Builder Source #

ToSQL FunctionName Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.Types

Methods

toSQL :: FunctionName -> Builder Source #

ToSQL ConstraintName Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.Types

Methods

toSQL :: ConstraintName -> Builder Source #

ToSQL TableName Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.Types

Methods

toSQL :: TableName -> Builder Source #

ToSQL Identifier Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.Types

Methods

toSQL :: Identifier -> Builder Source #

ToSQL TopLevelCTE Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: TopLevelCTE -> Builder Source #

ToSQL SQLInsert Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: SQLInsert -> Builder Source #

ToSQL ValuesExp Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: ValuesExp -> Builder Source #

ToSQL SQLConflict Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: SQLConflict -> Builder Source #

ToSQL SQLConflictTarget Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: SQLConflictTarget -> Builder Source #

ToSQL RetExp Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: RetExp -> Builder Source #

ToSQL SetExpItem Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: SetExpItem -> Builder Source #

ToSQL SetExp Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: SetExp -> Builder Source #

ToSQL SQLUpdate Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: SQLUpdate -> Builder Source #

ToSQL SQLDelete Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: SQLDelete -> Builder Source #

ToSQL CompareOp Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: CompareOp -> Builder Source #

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

Methods

toSQL :: BoolExp -> Builder Source #

ToSQL JoinCond Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: JoinCond -> Builder Source #

ToSQL JoinType Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: JoinType -> Builder Source #

ToSQL JoinExpr Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: JoinExpr -> Builder Source #

ToSQL Lateral Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: Lateral -> Builder Source #

ToSQL FromItem Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: FromItem -> Builder Source #

ToSQL FunctionExp Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: FunctionExp -> Builder Source #

ToSQL FunctionAlias Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: FunctionAlias -> Builder Source #

ToSQL FunctionDefinitionListItem Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

ToSQL FunctionArgs Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: FunctionArgs -> Builder Source #

ToSQL DistinctExpr Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: DistinctExpr -> Builder Source #

ToSQL Extractor Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: Extractor -> Builder Source #

ToSQL SQLExp Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: SQLExp -> Builder Source #

ToSQL TupleExp Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: TupleExp -> Builder Source #

ToSQL CountType Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: CountType -> Builder Source #

ToSQL TypeAnn Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: TypeAnn -> Builder Source #

ToSQL QIdentifier Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: QIdentifier -> Builder Source #

ToSQL Qual Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: Qual -> Builder Source #

ToSQL WhereFrag Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: WhereFrag -> Builder Source #

ToSQL HavingExp Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: HavingExp -> Builder Source #

ToSQL FromExp Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: FromExp -> Builder Source #

ToSQL GroupByExp Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: GroupByExp -> Builder Source #

ToSQL NullsOrder Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: NullsOrder -> Builder Source #

ToSQL OrderType Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: OrderType -> Builder Source #

ToSQL OrderByItem Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: OrderByItem -> Builder Source #

ToSQL OrderByExp Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: OrderByExp -> Builder Source #

ToSQL OffsetExp Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: OffsetExp -> Builder Source #

ToSQL LimitExp Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: LimitExp -> Builder Source #

ToSQL Select Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: Select -> Builder Source #

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

Defined in Hasura.SQL.Types

Methods

toSQL :: Maybe a -> Builder Source #

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

Defined in Hasura.SQL.Types

Methods

toSQL :: CollectableType a -> Builder Source #

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

Defined in Hasura.Backends.Postgres.SQL.Types

Methods

toSQL :: QualifiedObject a -> Builder Source #

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

Defined in Hasura.Backends.Postgres.SQL.DML

Methods

toSQL :: SelectWithG v -> 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 #

Eq a => Eq (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) #

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

Defined in Hasura.SQL.Types

Generic (CollectableType a) Source # 
Instance details

Defined in Hasura.SQL.Types

Associated Types

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

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

Defined in Hasura.SQL.Types

Methods

rnf :: CollectableType a -> () #

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

Defined in Hasura.SQL.Types

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

Defined in Hasura.SQL.Types

Methods

parseJSON :: Value -> Parser (CollectableType a)

parseJSONList :: Value -> Parser [CollectableType a]

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

Defined in Hasura.SQL.Types

Methods

toJSON :: CollectableType a -> Value

toEncoding :: CollectableType a -> Encoding

toJSONList :: [CollectableType a] -> Value

toEncodingList :: [CollectableType a] -> Encoding

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

Defined in Hasura.SQL.Types

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

Defined in Hasura.SQL.Types

Methods

toSQL :: CollectableType a -> Builder Source #

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 

Fields

Instances

Instances details
Eq 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 -> () #

HasCodec ExtensionsSchema Source # 
Instance details

Defined in Hasura.SQL.Types

Hashable ExtensionsSchema Source # 
Instance details

Defined in Hasura.SQL.Types

FromJSON ExtensionsSchema Source # 
Instance details

Defined in Hasura.SQL.Types

Methods

parseJSON :: Value -> Parser ExtensionsSchema

parseJSONList :: Value -> Parser [ExtensionsSchema]

ToJSON ExtensionsSchema Source # 
Instance details

Defined in Hasura.SQL.Types

Cacheable ExtensionsSchema Source # 
Instance details

Defined in Hasura.SQL.Types

FromEnv ExtensionsSchema Source # 
Instance details

Defined in Hasura.Server.Init.Env