Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Aliased a = Aliased {
- aliasedThing :: a
- aliasedAlias :: Text
- data ConnSourceConfig = ConnSourceConfig {
- _cscHost :: Text
- _cscPort :: Word16
- _cscUser :: Text
- _cscPassword :: Text
- _cscDatabase :: Text
- _cscPoolSettings :: ConnPoolSettings
- data SourceConfig = SourceConfig {
- scConfig :: ConnSourceConfig
- scConnectionPool :: Pool Connection
- newtype ConstraintName = ConstraintName {
- unConstraintName :: Text
- newtype FunctionName = FunctionName {
- unFunctionName :: Text
- newtype Column = Column {
- unColumn :: Text
- data ScalarValue
- = BigValue Int32
- | BinaryValue ByteString
- | BitValue Bool
- | BlobValue ByteString
- | CharValue Text
- | DatetimeValue Text
- | DateValue Text
- | DecimalValue Double
- | DoubleValue Double
- | EnumValue Text
- | FloatValue Double
- | GeometrycollectionValue Text
- | GeometryValue Text
- | IntValue Int32
- | JsonValue Value
- | LinestringValue Text
- | MediumValue Int32
- | MultilinestringValue Text
- | MultipointValue Text
- | MultipolygonValue Text
- | NullValue
- | NumericValue Double
- | PointValue Text
- | PolygonValue Text
- | SetValue (Set Text)
- | SmallValue Int32
- | TextValue Text
- | TimestampValue Text
- | TimeValue Text
- | TinyValue Int32
- | UnknownValue Text
- | VarbinaryValue ByteString
- | VarcharValue Text
- | YearValue Text
- data Expression
- data Top
- data Op
- data ConnPoolSettings = ConnPoolSettings {}
- data FieldName = FieldName {
- fName :: Text
- fNameEntity :: Text
- data FieldOrigin
- newtype EntityAlias = EntityAlias {
- entityAliasText :: Text
- data Countable name
- = StarCountable
- | NonNullFieldCountable (NonEmpty name)
- | DistinctCountable (NonEmpty name)
- data Aggregate
- = CountAggregate (Countable FieldName)
- | OpAggregate Text [Expression]
- | TextAggregate Text
- data Projection
- = ExpressionProjection (Aliased Expression)
- | FieldNameProjection (Aliased FieldName)
- | AggregateProjections (Aliased (NonEmpty (Aliased Aggregate)))
- | AggregateProjection (Aliased Aggregate)
- | StarProjection
- | EntityProjection (Aliased [(FieldName, FieldOrigin)])
- | ArrayEntityProjection EntityAlias (Aliased [FieldName])
- data TableName = TableName {}
- data From
- data Reselect = Reselect {}
- data JoinAlias = JoinAlias {
- joinAliasEntity :: Text
- joinAliasField :: Maybe Text
- data Join = Join {
- joinRightTable :: EntityAlias
- joinSelect :: Select
- joinType :: JoinType
- joinFieldName :: Text
- joinTop :: Top
- joinOffset :: Maybe Int
- data JoinType
- = OnlessJoin
- | ArrayJoin [(FieldName, FieldName)]
- | ArrayAggregateJoin [(FieldName, FieldName)]
- | ObjectJoin [(FieldName, FieldName)]
- newtype Where = Where [Expression]
- data Order
- data NullsOrder
- type ScalarType = Type
- data OrderBy = OrderBy {}
- data Select = Select {
- selectProjections :: InsOrdHashSet Projection
- selectFrom :: From
- selectJoins :: [Join]
- selectWhere :: Where
- selectOrderBy :: Maybe (NonEmpty OrderBy)
- selectSqlOffset :: Maybe Int
- selectSqlTop :: Top
- selectGroupBy :: [FieldName]
- selectFinalWantedFields :: Maybe [Text]
- mkMySQLScalarTypeName :: MonadError QErr m => ScalarType -> m Name
- scalarTypeDBName :: ScalarType -> Text
- defaultConnPoolSettings :: ConnPoolSettings
- parseMySQLScalarType :: Text -> ScalarType
- parseScalarValue :: ScalarType -> Value -> Either QErr ScalarValue
Documentation
Aliased | |
|
Instances
Functor Aliased Source # | |
Eq a => Eq (Aliased a) Source # | |
Data a => Data (Aliased a) Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Aliased a -> c (Aliased a) # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Aliased a) # toConstr :: Aliased a -> Constr # dataTypeOf :: Aliased a -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Aliased a)) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Aliased a)) # gmapT :: (forall b. Data b => b -> b) -> Aliased a -> Aliased a # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Aliased a -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Aliased a -> r # gmapQ :: (forall d. Data d => d -> u) -> Aliased a -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Aliased a -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Aliased a -> m (Aliased a) # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Aliased a -> m (Aliased a) # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Aliased a -> m (Aliased a) # | |
Show a => Show (Aliased a) Source # | |
Generic (Aliased a) Source # | |
NFData a => NFData (Aliased a) Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances | |
Hashable a => Hashable (Aliased a) | |
Defined in Hasura.Backends.MySQL.Types.Instances | |
Cacheable a => Cacheable (Aliased a) Source # | |
type Rep (Aliased a) Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances type Rep (Aliased a) = D1 ('MetaData "Aliased" "Hasura.Backends.MySQL.Types.Internal" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "Aliased" 'PrefixI 'True) (S1 ('MetaSel ('Just "aliasedThing") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 a) :*: S1 ('MetaSel ('Just "aliasedAlias") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) |
data ConnSourceConfig Source #
Partial of Database.MySQL.Simple.ConnectInfo
ConnSourceConfig | |
|
Instances
data SourceConfig Source #
SourceConfig | |
|
Instances
newtype ConstraintName Source #
ConstraintName | |
|
Instances
newtype FunctionName Source #
FunctionName | |
|
Instances
Instances
data ScalarValue Source #
BigValue Int32 | |
BinaryValue ByteString | |
BitValue Bool | |
BlobValue ByteString | |
CharValue Text | |
DatetimeValue Text | |
DateValue Text | |
DecimalValue Double | |
DoubleValue Double | |
EnumValue Text | |
FloatValue Double | |
GeometrycollectionValue Text | |
GeometryValue Text | |
IntValue Int32 | |
JsonValue Value | |
LinestringValue Text | |
MediumValue Int32 | |
MultilinestringValue Text | |
MultipointValue Text | |
MultipolygonValue Text | |
NullValue | |
NumericValue Double | |
PointValue Text | |
PolygonValue Text | |
SetValue (Set Text) | |
SmallValue Int32 | |
TextValue Text | |
TimestampValue Text | |
TimeValue Text | |
TinyValue Int32 | |
UnknownValue Text | |
VarbinaryValue ByteString | |
VarcharValue Text | |
YearValue Text |
Instances
data Expression Source #
Instances
Instances
Eq Top Source # | |
Data Top Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Top -> c Top # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Top # dataTypeOf :: Top -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Top) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Top) # gmapT :: (forall b. Data b => b -> b) -> Top -> Top # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Top -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Top -> r # gmapQ :: (forall d. Data d => d -> u) -> Top -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Top -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Top -> m Top # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Top -> m Top # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Top -> m Top # | |
Show Top Source # | |
Generic Top Source # | |
Semigroup Top Source # | |
Monoid Top Source # | |
NFData Top Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances | |
Hashable Top | |
Defined in Hasura.Backends.MySQL.Types.Instances | |
Cacheable Top Source # | |
type Rep Top Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances type Rep Top = D1 ('MetaData "Top" "Hasura.Backends.MySQL.Types.Internal" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "NoTop" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Top" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
Instances
Eq Op Source # | |
Data Op Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Op -> c Op # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Op # dataTypeOf :: Op -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Op) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Op) # gmapT :: (forall b. Data b => b -> b) -> Op -> Op # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Op -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Op -> r # gmapQ :: (forall d. Data d => d -> u) -> Op -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Op -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Op -> m Op # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Op -> m Op # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Op -> m Op # | |
Show Op Source # | |
Generic Op Source # | |
NFData Op Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances | |
Hashable Op | |
Defined in Hasura.Backends.MySQL.Types.Instances | |
Cacheable Op Source # | |
type Rep Op Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances type Rep Op = D1 ('MetaData "Op" "Hasura.Backends.MySQL.Types.Internal" "graphql-engine-1.0.0-inplace" 'False) (((C1 ('MetaCons "LT" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LTE" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "GT" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "GTE" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IN" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "LIKE" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NLIKE" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "NIN" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "EQ'" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NEQ'" 'PrefixI 'False) (U1 :: Type -> Type))))) |
data ConnPoolSettings Source #
Instances
FieldName | |
|
Instances
Eq FieldName Source # | |
Data FieldName Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> FieldName -> c FieldName # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c FieldName # toConstr :: FieldName -> Constr # dataTypeOf :: FieldName -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c FieldName) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c FieldName) # gmapT :: (forall b. Data b => b -> b) -> FieldName -> FieldName # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> FieldName -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> FieldName -> r # gmapQ :: (forall d. Data d => d -> u) -> FieldName -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> FieldName -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> FieldName -> m FieldName # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> FieldName -> m FieldName # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> FieldName -> m FieldName # | |
Show FieldName Source # | |
Generic FieldName Source # | |
NFData FieldName Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances | |
Hashable FieldName | |
Defined in Hasura.Backends.MySQL.Types.Instances | |
FromJSON FieldName | |
Defined in Hasura.Backends.MySQL.Types.Instances parseJSON :: Value -> Parser FieldName parseJSONList :: Value -> Parser [FieldName] | |
ToJSON FieldName | |
Defined in Hasura.Backends.MySQL.Types.Instances toEncoding :: FieldName -> Encoding toJSONList :: [FieldName] -> Value toEncodingList :: [FieldName] -> Encoding | |
Cacheable FieldName Source # | |
type Rep FieldName Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances type Rep FieldName = D1 ('MetaData "FieldName" "Hasura.Backends.MySQL.Types.Internal" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "FieldName" 'PrefixI 'True) (S1 ('MetaSel ('Just "fName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "fNameEntity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) |
data FieldOrigin Source #
Instances
newtype EntityAlias Source #
EntityAlias | |
|
Instances
StarCountable | |
NonNullFieldCountable (NonEmpty name) | |
DistinctCountable (NonEmpty name) |
Instances
Eq n => Eq (Countable n) Source # | |
Data n => Data (Countable n) Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Countable n -> c (Countable n) # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Countable n) # toConstr :: Countable n -> Constr # dataTypeOf :: Countable n -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Countable n)) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Countable n)) # gmapT :: (forall b. Data b => b -> b) -> Countable n -> Countable n # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Countable n -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Countable n -> r # gmapQ :: (forall d. Data d => d -> u) -> Countable n -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Countable n -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Countable n -> m (Countable n) # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Countable n -> m (Countable n) # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Countable n -> m (Countable n) # | |
Show n => Show (Countable n) Source # | |
Generic (Countable n) Source # | |
NFData n => NFData (Countable n) Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances | |
Hashable n => Hashable (Countable n) | |
Defined in Hasura.Backends.MySQL.Types.Instances | |
FromJSON n => FromJSON (Countable n) | |
Defined in Hasura.Backends.MySQL.Types.Instances parseJSON :: Value -> Parser (Countable n) parseJSONList :: Value -> Parser [Countable n] | |
ToJSON n => ToJSON (Countable n) | |
Defined in Hasura.Backends.MySQL.Types.Instances toJSON :: Countable n -> Value toEncoding :: Countable n -> Encoding toJSONList :: [Countable n] -> Value toEncodingList :: [Countable n] -> Encoding | |
Cacheable n => Cacheable (Countable n) Source # | |
type Rep (Countable n) Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances type Rep (Countable n) = D1 ('MetaData "Countable" "Hasura.Backends.MySQL.Types.Internal" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "StarCountable" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "NonNullFieldCountable" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty n))) :+: C1 ('MetaCons "DistinctCountable" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty n))))) |
CountAggregate (Countable FieldName) | |
OpAggregate Text [Expression] | |
TextAggregate Text |
Instances
data Projection Source #
Instances
Instances
Instances
Eq From Source # | |
Data From Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> From -> c From # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c From # dataTypeOf :: From -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c From) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c From) # gmapT :: (forall b. Data b => b -> b) -> From -> From # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> From -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> From -> r # gmapQ :: (forall d. Data d => d -> u) -> From -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> From -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> From -> m From # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> From -> m From # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> From -> m From # | |
Show From Source # | |
Generic From Source # | |
NFData From Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances | |
Hashable From | |
Defined in Hasura.Backends.MySQL.Types.Instances | |
Cacheable From Source # | |
type Rep From Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances type Rep From = D1 ('MetaData "From" "Hasura.Backends.MySQL.Types.Internal" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "FromQualifiedTable" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Aliased TableName))) :+: C1 ('MetaCons "FromSelect" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Aliased Select)))) |
Instances
Eq Reselect Source # | |
Data Reselect Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Reselect -> c Reselect # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Reselect # toConstr :: Reselect -> Constr # dataTypeOf :: Reselect -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Reselect) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Reselect) # gmapT :: (forall b. Data b => b -> b) -> Reselect -> Reselect # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Reselect -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Reselect -> r # gmapQ :: (forall d. Data d => d -> u) -> Reselect -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Reselect -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Reselect -> m Reselect # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Reselect -> m Reselect # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Reselect -> m Reselect # | |
Show Reselect Source # | |
Generic Reselect Source # | |
NFData Reselect Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances | |
Hashable Reselect | |
Defined in Hasura.Backends.MySQL.Types.Instances | |
Cacheable Reselect Source # | |
type Rep Reselect Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances type Rep Reselect = D1 ('MetaData "Reselect" "Hasura.Backends.MySQL.Types.Internal" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "Reselect" 'PrefixI 'True) (S1 ('MetaSel ('Just "reselectProjections") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Projection]) :*: S1 ('MetaSel ('Just "reselectWhere") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Where))) |
JoinAlias | |
|
Instances
Eq JoinAlias Source # | |
Data JoinAlias Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JoinAlias -> c JoinAlias # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JoinAlias # toConstr :: JoinAlias -> Constr # dataTypeOf :: JoinAlias -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JoinAlias) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JoinAlias) # gmapT :: (forall b. Data b => b -> b) -> JoinAlias -> JoinAlias # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JoinAlias -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JoinAlias -> r # gmapQ :: (forall d. Data d => d -> u) -> JoinAlias -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> JoinAlias -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> JoinAlias -> m JoinAlias # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JoinAlias -> m JoinAlias # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JoinAlias -> m JoinAlias # | |
Show JoinAlias Source # | |
Generic JoinAlias Source # | |
NFData JoinAlias Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances | |
Hashable JoinAlias | |
Defined in Hasura.Backends.MySQL.Types.Instances | |
Cacheable JoinAlias Source # | |
type Rep JoinAlias Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances type Rep JoinAlias = D1 ('MetaData "JoinAlias" "Hasura.Backends.MySQL.Types.Internal" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "JoinAlias" 'PrefixI 'True) (S1 ('MetaSel ('Just "joinAliasEntity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "joinAliasField") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) |
Join | |
|
Instances
Eq Join Source # | |
Data Join Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Join -> c Join # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Join # dataTypeOf :: Join -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Join) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Join) # gmapT :: (forall b. Data b => b -> b) -> Join -> Join # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Join -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Join -> r # gmapQ :: (forall d. Data d => d -> u) -> Join -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Join -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Join -> m Join # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Join -> m Join # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Join -> m Join # | |
Show Join Source # | |
Generic Join Source # | |
NFData Join Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances | |
Hashable Join | |
Defined in Hasura.Backends.MySQL.Types.Instances | |
Cacheable Join Source # | |
type Rep Join Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances type Rep Join = D1 ('MetaData "Join" "Hasura.Backends.MySQL.Types.Internal" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "Join" 'PrefixI 'True) ((S1 ('MetaSel ('Just "joinRightTable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 EntityAlias) :*: (S1 ('MetaSel ('Just "joinSelect") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Select) :*: S1 ('MetaSel ('Just "joinType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 JoinType))) :*: (S1 ('MetaSel ('Just "joinFieldName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "joinTop") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Top) :*: S1 ('MetaSel ('Just "joinOffset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))))) |
OnlessJoin | A join without any 'ON x=y' construct. We're querying from a table and doing our own WHERE clauses. |
ArrayJoin [(FieldName, FieldName)] | An array join on the given fields. |
ArrayAggregateJoin [(FieldName, FieldName)] | An array aggregate join. |
ObjectJoin [(FieldName, FieldName)] | Simple object join on the fields. |
Instances
Instances
Eq Where Source # | |
Data Where Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Where -> c Where # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Where # dataTypeOf :: Where -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Where) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Where) # gmapT :: (forall b. Data b => b -> b) -> Where -> Where # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Where -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Where -> r # gmapQ :: (forall d. Data d => d -> u) -> Where -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Where -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Where -> m Where # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Where -> m Where # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Where -> m Where # | |
Show Where Source # | |
Generic Where Source # | |
Semigroup Where Source # | |
Monoid Where Source # | |
NFData Where Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances | |
Hashable Where | |
Defined in Hasura.Backends.MySQL.Types.Instances | |
Cacheable Where Source # | |
type Rep Where Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances type Rep Where = D1 ('MetaData "Where" "Hasura.Backends.MySQL.Types.Internal" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "Where" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Expression]))) |
Instances
Eq Order Source # | |
Data Order Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Order -> c Order # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Order # dataTypeOf :: Order -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Order) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Order) # gmapT :: (forall b. Data b => b -> b) -> Order -> Order # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Order -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Order -> r # gmapQ :: (forall d. Data d => d -> u) -> Order -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Order -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Order -> m Order # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Order -> m Order # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Order -> m Order # | |
Show Order Source # | |
Generic Order Source # | |
NFData Order Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances | |
Hashable Order | |
Defined in Hasura.Backends.MySQL.Types.Instances | |
FromJSON Order | |
Defined in Hasura.Backends.MySQL.Types.Instances parseJSON :: Value -> Parser Order parseJSONList :: Value -> Parser [Order] | |
ToJSON Order | |
Defined in Hasura.Backends.MySQL.Types.Instances | |
Cacheable Order Source # | |
Lift Order Source # | |
type Rep Order Source # | |
data NullsOrder Source #
Instances
type ScalarType = Type Source #
Instances
Eq OrderBy Source # | |
Data OrderBy Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> OrderBy -> c OrderBy # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c OrderBy # toConstr :: OrderBy -> Constr # dataTypeOf :: OrderBy -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c OrderBy) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c OrderBy) # gmapT :: (forall b. Data b => b -> b) -> OrderBy -> OrderBy # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> OrderBy -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> OrderBy -> r # gmapQ :: (forall d. Data d => d -> u) -> OrderBy -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> OrderBy -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> OrderBy -> m OrderBy # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> OrderBy -> m OrderBy # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> OrderBy -> m OrderBy # | |
Show OrderBy Source # | |
Generic OrderBy Source # | |
NFData OrderBy Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances | |
Hashable OrderBy | |
Defined in Hasura.Backends.MySQL.Types.Instances | |
Cacheable OrderBy Source # | |
type Rep OrderBy Source # | |
Defined in Hasura.Backends.MySQL.Types.Instances type Rep OrderBy = D1 ('MetaData "OrderBy" "Hasura.Backends.MySQL.Types.Internal" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "OrderBy" 'PrefixI 'True) ((S1 ('MetaSel ('Just "orderByFieldName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 FieldName) :*: S1 ('MetaSel ('Just "orderByOrder") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Order)) :*: (S1 ('MetaSel ('Just "orderByNullsOrder") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 NullsOrder) :*: S1 ('MetaSel ('Just "orderByType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ScalarType))))) |
Select | |
|
Instances
mkMySQLScalarTypeName :: MonadError QErr m => ScalarType -> m Name Source #
scalarTypeDBName :: ScalarType -> Text Source #
parseMySQLScalarType :: Text -> ScalarType Source #
ref: https://dev.mysql.com/doc/c-api/8.0/en/c-api-data-structures.html
DB has CHAR, BINARY, VARCHAR and VARBINARY C API only has STRING and VARSTRING Database.MySQL.Base.Types.Type has String, VarString and VarChar for some reason
parseScalarValue :: ScalarType -> Value -> Either QErr ScalarValue Source #
Orphan instances
FromJSON ByteString Source # | |
parseJSON :: Value -> Parser ByteString parseJSONList :: Value -> Parser [ByteString] | |
ToJSON ByteString Source # | |
toJSON :: ByteString -> Value toEncoding :: ByteString -> Encoding toJSONList :: [ByteString] -> Value toEncodingList :: [ByteString] -> Encoding |