Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Types for BigQuery
Synopsis
- data Select = Select {
- selectWith :: Maybe With
- selectTop :: Top
- selectAsStruct :: AsStruct
- selectProjections :: NonEmpty Projection
- selectFrom :: From
- selectJoins :: [Join]
- selectWhere :: Where
- selectOrderBy :: Maybe (NonEmpty OrderBy)
- selectOffset :: Maybe Expression
- selectGroupBy :: [FieldName]
- selectFinalWantedFields :: Maybe [Text]
- selectCardinality :: Cardinality
- data PartitionableSelect = PartitionableSelect {
- pselectFinalize :: Maybe [FieldName] -> Select
- pselectFrom :: From
- simpleSelect :: Select -> PartitionableSelect
- noExtraPartitionFields :: PartitionableSelect -> Select
- withExtraPartitionFields :: PartitionableSelect -> [FieldName] -> Select
- data ArrayAgg = ArrayAgg {}
- data Reselect = Reselect {}
- data OrderBy = OrderBy {}
- data Order
- data NullsOrder
- data FieldOrigin
- aggregateProjectionsFieldOrigin :: Projection -> FieldOrigin
- data Projection
- = ExpressionProjection (Aliased Expression)
- | FieldNameProjection (Aliased FieldName)
- | AggregateProjections (Aliased (NonEmpty (Aliased Aggregate)))
- | AggregateProjection (Aliased Aggregate)
- | StarProjection
- | ArrayAggProjection (Aliased ArrayAgg)
- | EntityProjection (Aliased [(FieldName, FieldOrigin)])
- | ArrayEntityProjection EntityAlias (Aliased [FieldName])
- | WindowProjection (Aliased WindowFunction)
- data WindowFunction = RowNumberOverPartitionBy (NonEmpty FieldName) (Maybe (NonEmpty OrderBy))
- data JoinType
- data Join = Join {}
- data JoinProvenance
- data JoinSource = JoinSelect Select
- newtype Where = Where [Expression]
- data Cardinality
- data AsStruct
- newtype With = With (NonEmpty (Aliased (InterpolatedQuery Expression)))
- data Top
- data Expression
- = ValueExpression TypedValue
- | InExpression Expression TypedValue
- | AndExpression [Expression]
- | OrExpression [Expression]
- | NotExpression Expression
- | ExistsExpression Select
- | SelectExpression Select
- | IsNullExpression Expression
- | IsNotNullExpression Expression
- | ColumnExpression FieldName
- | EqualExpression Expression Expression
- | NotEqualExpression Expression Expression
- | JsonQueryExpression Expression
- | ToStringExpression Expression
- | JsonValueExpression Expression JsonPath
- | OpExpression Op Expression Expression
- | ListExpression [Expression]
- | CastExpression Expression ScalarType
- | FunctionExpression FunctionName [Expression]
- | ConditionalProjection Expression FieldName
- | FunctionNamedArgument Text Expression
- data JsonPath
- data Aggregate
- data Countable fieldname
- = StarCountable
- | NonNullFieldCountable (NonEmpty fieldname)
- | DistinctCountable (NonEmpty fieldname)
- data From
- data SelectJson = SelectJson {}
- data SelectFromFunction = SelectFromFunction {}
- data Aliased a = Aliased {
- aliasedThing :: a
- aliasedAlias :: Text
- data TableName = TableName {
- tableName :: Text
- tableNameSchema :: Text
- data FieldName = FieldName {
- fieldName :: Text
- fieldNameEntity :: Text
- newtype ColumnName = ColumnName Text
- newtype EntityAlias = EntityAlias {}
- columnToFieldName :: EntityAlias -> ColumnName -> FieldName
- data Op
- = LessOp
- | LessOrEqualOp
- | MoreOp
- | MoreOrEqualOp
- | InOp
- | NotInOp
- | LikeOp
- | NotLikeOp
- data Value
- = NullValue
- | IntegerValue Int64
- | DecimalValue Decimal
- | BigDecimalValue BigDecimal
- | FloatValue Float64
- | GeographyValue Geography
- | StringValue Text
- | BytesValue Base64
- | BoolValue Bool
- | ArrayValue (Vector Value)
- | TimestampValue Timestamp
- | DateValue Date
- | TimeValue Time
- | JsonValue Value
- | DatetimeValue Datetime
- newtype Timestamp = Timestamp Text
- newtype Date = Date Text
- newtype Time = Time Text
- newtype Datetime = Datetime Text
- newtype Int64 = Int64 Text
- data TypedValue = TypedValue {
- tvType :: ScalarType
- tvValue :: Value
- intToInt64 :: Int64 -> Int64
- int64Expr :: Int64 -> Expression
- newtype Decimal = Decimal Text
- scientificToText :: Scientific -> Text
- newtype BigDecimal = BigDecimal Text
- doubleToBigDecimal :: Double -> BigDecimal
- data Float64
- doubleToFloat64 :: Double -> Float64
- data Base64
- newtype Geography = Geography Text
- data ScalarType
- data BooleanOperators a
- = ASTContains a
- | ASTEquals a
- | ASTTouches a
- | ASTWithin a
- | ASTIntersects a
- | ASTDWithin (DWithinGeogOp a)
- data FunctionName = FunctionName {}
- data ComputedFieldDefinition = ComputedFieldDefinition {}
- data ArgumentExp v
- type ComputedFieldImplicitArguments = HashMap FunctionArgName ColumnName
- data ComputedFieldReturn
- data FunctionArgument = FunctionArgument {}
- parseScalarValue :: ScalarType -> Value -> Either QErr Value
- isComparableType :: ScalarType -> Bool
- isNumType :: ScalarType -> Bool
- getGQLTableName :: TableName -> Either QErr Name
- projectionAlias :: Projection -> Maybe Text
- data Job = Job {}
- data ExecutionStatistics = ExecutionStatistics {}
Documentation
Select | |
|
Instances
data PartitionableSelect Source #
Helper type allowing addition of extra fields used in PARTITION BY.
The main purpose of this type is sumulation of DISTINCT ON implemented in Hasura.Backends.BigQuery.FromIr.simulateDistinctOn
Instances
Data ArrayAgg Source # | |
Defined in Hasura.Backends.BigQuery.Types gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ArrayAgg -> c ArrayAgg # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ArrayAgg # toConstr :: ArrayAgg -> Constr # dataTypeOf :: ArrayAgg -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ArrayAgg) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ArrayAgg) # gmapT :: (forall b. Data b => b -> b) -> ArrayAgg -> ArrayAgg # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ArrayAgg -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ArrayAgg -> r # gmapQ :: (forall d. Data d => d -> u) -> ArrayAgg -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> ArrayAgg -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> ArrayAgg -> m ArrayAgg # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ArrayAgg -> m ArrayAgg # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ArrayAgg -> m ArrayAgg # | |
Generic ArrayAgg Source # | |
Show ArrayAgg Source # | |
NFData ArrayAgg Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Eq ArrayAgg Source # | |
Ord ArrayAgg Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Hashable ArrayAgg Source # | |
Lift ArrayAgg Source # | |
type Rep ArrayAgg Source # | |
Defined in Hasura.Backends.BigQuery.Types type Rep ArrayAgg = D1 ('MetaData "ArrayAgg" "Hasura.Backends.BigQuery.Types" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "ArrayAgg" 'PrefixI 'True) (S1 ('MetaSel ('Just "arrayAggProjections") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Projection)) :*: (S1 ('MetaSel ('Just "arrayAggOrderBy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty OrderBy))) :*: S1 ('MetaSel ('Just "arrayAggTop") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Top)))) |
Instances
Data Reselect Source # | |
Defined in Hasura.Backends.BigQuery.Types 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 # | |
Generic Reselect Source # | |
Show Reselect Source # | |
NFData Reselect Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Eq Reselect Source # | |
Ord Reselect Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Hashable Reselect Source # | |
Lift Reselect Source # | |
type Rep Reselect Source # | |
Defined in Hasura.Backends.BigQuery.Types type Rep Reselect = D1 ('MetaData "Reselect" "Hasura.Backends.BigQuery.Types" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "Reselect" 'PrefixI 'True) (S1 ('MetaSel ('Just "reselectProjections") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Projection)) :*: S1 ('MetaSel ('Just "reselectWhere") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Where))) |
Instances
FromJSON OrderBy Source # | |
ToJSON OrderBy Source # | |
Data OrderBy Source # | |
Defined in Hasura.Backends.BigQuery.Types 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 # | |
Generic OrderBy Source # | |
Show OrderBy Source # | |
NFData OrderBy Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Eq OrderBy Source # | |
Ord OrderBy Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Hashable OrderBy Source # | |
Lift OrderBy Source # | |
type Rep OrderBy Source # | |
Defined in Hasura.Backends.BigQuery.Types type Rep OrderBy = D1 ('MetaData "OrderBy" "Hasura.Backends.BigQuery.Types" "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)))) |
Instances
FromJSON Order Source # | |
ToJSON Order Source # | |
Data Order Source # | |
Defined in Hasura.Backends.BigQuery.Types 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 # | |
Generic Order Source # | |
Show Order Source # | |
NFData Order Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Eq Order Source # | |
Ord Order Source # | |
Hashable Order Source # | |
Lift Order Source # | |
type Rep Order Source # | |
data NullsOrder Source #
Instances
data FieldOrigin Source #
Instances
data Projection Source #
Instances
data WindowFunction Source #
RowNumberOverPartitionBy (NonEmpty FieldName) (Maybe (NonEmpty OrderBy)) | ROW_NUMBER() OVER(PARTITION BY field) |
Instances
Instances
FromJSON JoinType Source # | |
ToJSON JoinType Source # | |
Data JoinType Source # | |
Defined in Hasura.Backends.BigQuery.Types gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JoinType -> c JoinType # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JoinType # toConstr :: JoinType -> Constr # dataTypeOf :: JoinType -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JoinType) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JoinType) # gmapT :: (forall b. Data b => b -> b) -> JoinType -> JoinType # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JoinType -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JoinType -> r # gmapQ :: (forall d. Data d => d -> u) -> JoinType -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> JoinType -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> JoinType -> m JoinType # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JoinType -> m JoinType # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JoinType -> m JoinType # | |
Generic JoinType Source # | |
Show JoinType Source # | |
NFData JoinType Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Eq JoinType Source # | |
Ord JoinType Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Hashable JoinType Source # | |
Lift JoinType Source # | |
type Rep JoinType Source # | |
Join | |
|
Instances
data JoinProvenance Source #
OrderByJoinProvenance | |
ObjectJoinProvenance [Text] | |
ArrayAggregateJoinProvenance [(Text, FieldOrigin)] | |
ArrayJoinProvenance [Text] |
Instances
data JoinSource Source #
Instances
Instances
Data Where Source # | |
Defined in Hasura.Backends.BigQuery.Types 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 # | |
Monoid Where Source # | |
Semigroup Where Source # | |
Generic Where Source # | |
Show Where Source # | |
NFData Where Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Eq Where Source # | |
Ord Where Source # | |
Hashable Where Source # | |
Lift Where Source # | |
type Rep Where Source # | |
Defined in Hasura.Backends.BigQuery.Types type Rep Where = D1 ('MetaData "Where" "Hasura.Backends.BigQuery.Types" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "Where" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Expression]))) |
data Cardinality Source #
Instances
Instances
FromJSON AsStruct Source # | |
ToJSON AsStruct Source # | |
Data AsStruct Source # | |
Defined in Hasura.Backends.BigQuery.Types gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AsStruct -> c AsStruct # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AsStruct # toConstr :: AsStruct -> Constr # dataTypeOf :: AsStruct -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AsStruct) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AsStruct) # gmapT :: (forall b. Data b => b -> b) -> AsStruct -> AsStruct # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AsStruct -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AsStruct -> r # gmapQ :: (forall d. Data d => d -> u) -> AsStruct -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> AsStruct -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> AsStruct -> m AsStruct # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AsStruct -> m AsStruct # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AsStruct -> m AsStruct # | |
Generic AsStruct Source # | |
Show AsStruct Source # | |
NFData AsStruct Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Eq AsStruct Source # | |
Ord AsStruct Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Hashable AsStruct Source # | |
Lift AsStruct Source # | |
type Rep AsStruct Source # | |
A Common Table Expression clause.
Instances
Data With Source # | |
Defined in Hasura.Backends.BigQuery.Types gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> With -> c With # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c With # dataTypeOf :: With -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c With) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c With) # gmapT :: (forall b. Data b => b -> b) -> With -> With # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> With -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> With -> r # gmapQ :: (forall d. Data d => d -> u) -> With -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> With -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> With -> m With # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> With -> m With # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> With -> m With # | |
Semigroup With Source # | |
Generic With Source # | |
Show With Source # | |
NFData With Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Eq With Source # | |
Ord With Source # | |
Hashable With Source # | |
Lift With Source # | |
type Rep With Source # | |
Defined in Hasura.Backends.BigQuery.Types type Rep With = D1 ('MetaData "With" "Hasura.Backends.BigQuery.Types" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "With" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty (Aliased (InterpolatedQuery Expression)))))) |
Instances
FromJSON Top Source # | |
ToJSON Top Source # | |
Data Top Source # | |
Defined in Hasura.Backends.BigQuery.Types 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 # | |
Monoid Top Source # | |
Semigroup Top Source # | |
Generic Top Source # | |
Show Top Source # | |
NFData Top Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Eq Top Source # | |
Ord Top Source # | |
Hashable Top Source # | |
Lift Top Source # | |
type Rep Top Source # | |
Defined in Hasura.Backends.BigQuery.Types type Rep Top = D1 ('MetaData "Top" "Hasura.Backends.BigQuery.Types" "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 Int64))) |
data Expression Source #
ValueExpression TypedValue | |
InExpression Expression TypedValue | |
AndExpression [Expression] | |
OrExpression [Expression] | |
NotExpression Expression | |
ExistsExpression Select | |
SelectExpression Select | |
IsNullExpression Expression | |
IsNotNullExpression Expression | |
ColumnExpression FieldName | |
EqualExpression Expression Expression | |
NotEqualExpression Expression Expression | |
JsonQueryExpression Expression | This one acts like a "cast to JSON" and makes SQL Server behave like it knows your field is JSON and not double-encode it. |
ToStringExpression Expression | |
JsonValueExpression Expression JsonPath | This is for getting actual atomic values out of a JSON string. |
OpExpression Op Expression Expression | |
ListExpression [Expression] | |
CastExpression Expression ScalarType | |
FunctionExpression FunctionName [Expression] | |
ConditionalProjection Expression FieldName | |
FunctionNamedArgument Text Expression | A function input argument expression with argument name
|
Instances
Instances
CountAggregate (Countable FieldName) | |
OpAggregates Text (NonEmpty (Text, Expression)) | |
OpAggregate Text Expression | |
TextAggregate Text |
Instances
data Countable fieldname Source #
StarCountable | |
NonNullFieldCountable (NonEmpty fieldname) | |
DistinctCountable (NonEmpty fieldname) |
Instances
Lift fieldname => Lift (Countable fieldname :: Type) Source # | |
FromJSON a => FromJSON (Countable a) Source # | |
ToJSON a => ToJSON (Countable a) Source # | |
Data fieldname => Data (Countable fieldname) Source # | |
Defined in Hasura.Backends.BigQuery.Types gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Countable fieldname -> c (Countable fieldname) # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Countable fieldname) # toConstr :: Countable fieldname -> Constr # dataTypeOf :: Countable fieldname -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Countable fieldname)) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Countable fieldname)) # gmapT :: (forall b. Data b => b -> b) -> Countable fieldname -> Countable fieldname # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Countable fieldname -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Countable fieldname -> r # gmapQ :: (forall d. Data d => d -> u) -> Countable fieldname -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Countable fieldname -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Countable fieldname -> m (Countable fieldname) # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Countable fieldname -> m (Countable fieldname) # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Countable fieldname -> m (Countable fieldname) # | |
Generic (Countable fieldname) Source # | |
Show fieldname => Show (Countable fieldname) Source # | |
NFData a => NFData (Countable a) Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Eq fieldname => Eq (Countable fieldname) Source # | |
Ord fieldname => Ord (Countable fieldname) Source # | |
Defined in Hasura.Backends.BigQuery.Types compare :: Countable fieldname -> Countable fieldname -> Ordering # (<) :: Countable fieldname -> Countable fieldname -> Bool # (<=) :: Countable fieldname -> Countable fieldname -> Bool # (>) :: Countable fieldname -> Countable fieldname -> Bool # (>=) :: Countable fieldname -> Countable fieldname -> Bool # max :: Countable fieldname -> Countable fieldname -> Countable fieldname # min :: Countable fieldname -> Countable fieldname -> Countable fieldname # | |
Hashable a => Hashable (Countable a) Source # | |
type Rep (Countable fieldname) Source # | |
Defined in Hasura.Backends.BigQuery.Types type Rep (Countable fieldname) = D1 ('MetaData "Countable" "Hasura.Backends.BigQuery.Types" "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 fieldname))) :+: C1 ('MetaCons "DistinctCountable" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty fieldname))))) |
FromQualifiedTable (Aliased TableName) | |
FromSelect (Aliased Select) | |
FromSelectJson (Aliased SelectJson) | |
FromFunction (Aliased SelectFromFunction) | |
FromNativeQuery (Aliased NativeQueryName) |
Instances
data SelectJson Source #
Instances
data SelectFromFunction Source #
Instances
Aliased | |
|
Instances
Functor Aliased Source # | |
Lift a => Lift (Aliased a :: Type) Source # | |
FromJSON a => FromJSON (Aliased a) Source # | |
ToJSON a => ToJSON (Aliased a) Source # | |
Data a => Data (Aliased a) Source # | |
Defined in Hasura.Backends.BigQuery.Types 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) # | |
Generic (Aliased a) Source # | |
Show a => Show (Aliased a) Source # | |
NFData a => NFData (Aliased a) Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Eq a => Eq (Aliased a) Source # | |
Ord a => Ord (Aliased a) Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Hashable a => Hashable (Aliased a) Source # | |
type Rep (Aliased a) Source # | |
Defined in Hasura.Backends.BigQuery.Types type Rep (Aliased a) = D1 ('MetaData "Aliased" "Hasura.Backends.BigQuery.Types" "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))) |
Instances
Instances
FromJSON FieldName Source # | |
ToJSON FieldName Source # | |
Data FieldName Source # | |
Defined in Hasura.Backends.BigQuery.Types 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 # | |
Generic FieldName Source # | |
Show FieldName Source # | |
NFData FieldName Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Eq FieldName Source # | |
Ord FieldName Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Hashable FieldName Source # | |
Lift FieldName Source # | |
type Rep FieldName Source # | |
Defined in Hasura.Backends.BigQuery.Types type Rep FieldName = D1 ('MetaData "FieldName" "Hasura.Backends.BigQuery.Types" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "FieldName" 'PrefixI 'True) (S1 ('MetaSel ('Just "fieldName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "fieldNameEntity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) |
newtype ColumnName Source #
Instances
newtype EntityAlias Source #
Instances
columnToFieldName :: EntityAlias -> ColumnName -> FieldName Source #
Instances
FromJSON Op Source # | |
ToJSON Op Source # | |
Data Op Source # | |
Defined in Hasura.Backends.BigQuery.Types 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 # | |
Generic Op Source # | |
Show Op Source # | |
NFData Op Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Eq Op Source # | |
Ord Op Source # | |
Hashable Op Source # | |
Lift Op Source # | |
type Rep Op Source # | |
Defined in Hasura.Backends.BigQuery.Types type Rep Op = D1 ('MetaData "Op" "Hasura.Backends.BigQuery.Types" "graphql-engine-1.0.0-inplace" 'False) (((C1 ('MetaCons "LessOp" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LessOrEqualOp" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MoreOp" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MoreOrEqualOp" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "InOp" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NotInOp" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "LikeOp" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NotLikeOp" 'PrefixI 'False) (U1 :: Type -> Type)))) |
Source for this represenation type:
https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Value
BigQuery results come in via the REST API as one of these simply types.
TODO: This omits StructValue -- do we need it?
Instances
BigQuery's conception of a timestamp.
Instances
FromJSON Timestamp Source # | |
ToJSON Timestamp Source # | |
Data Timestamp Source # | |
Defined in Hasura.Backends.BigQuery.Types gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Timestamp -> c Timestamp # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Timestamp # toConstr :: Timestamp -> Constr # dataTypeOf :: Timestamp -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Timestamp) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Timestamp) # gmapT :: (forall b. Data b => b -> b) -> Timestamp -> Timestamp # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Timestamp -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Timestamp -> r # gmapQ :: (forall d. Data d => d -> u) -> Timestamp -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Timestamp -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Timestamp -> m Timestamp # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Timestamp -> m Timestamp # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Timestamp -> m Timestamp # | |
Generic Timestamp Source # | |
Show Timestamp Source # | |
NFData Timestamp Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Eq Timestamp Source # | |
Ord Timestamp Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Hashable Timestamp Source # | |
Lift Timestamp Source # | |
type Rep Timestamp Source # | |
Defined in Hasura.Backends.BigQuery.Types |
BigQuery's conception of a date.
Instances
FromJSON Date Source # | |
ToJSON Date Source # | |
Data Date Source # | |
Defined in Hasura.Backends.BigQuery.Types gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Date -> c Date # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Date # dataTypeOf :: Date -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Date) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Date) # gmapT :: (forall b. Data b => b -> b) -> Date -> Date # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Date -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Date -> r # gmapQ :: (forall d. Data d => d -> u) -> Date -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Date -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Date -> m Date # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Date -> m Date # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Date -> m Date # | |
Generic Date Source # | |
Show Date Source # | |
NFData Date Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Eq Date Source # | |
Ord Date Source # | |
Hashable Date Source # | |
Lift Date Source # | |
type Rep Date Source # | |
Defined in Hasura.Backends.BigQuery.Types |
BigQuery's conception of a time.
Instances
FromJSON Time Source # | |
ToJSON Time Source # | |
Data Time Source # | |
Defined in Hasura.Backends.BigQuery.Types gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Time -> c Time # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Time # dataTypeOf :: Time -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Time) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Time) # gmapT :: (forall b. Data b => b -> b) -> Time -> Time # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Time -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Time -> r # gmapQ :: (forall d. Data d => d -> u) -> Time -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Time -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Time -> m Time # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Time -> m Time # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Time -> m Time # | |
Generic Time Source # | |
Show Time Source # | |
NFData Time Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Eq Time Source # | |
Ord Time Source # | |
Hashable Time Source # | |
Lift Time Source # | |
type Rep Time Source # | |
Defined in Hasura.Backends.BigQuery.Types |
BigQuery's conception of a datetime.
Instances
FromJSON Datetime Source # | |
ToJSON Datetime Source # | |
Data Datetime Source # | |
Defined in Hasura.Backends.BigQuery.Types gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Datetime -> c Datetime # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Datetime # toConstr :: Datetime -> Constr # dataTypeOf :: Datetime -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Datetime) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Datetime) # gmapT :: (forall b. Data b => b -> b) -> Datetime -> Datetime # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Datetime -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Datetime -> r # gmapQ :: (forall d. Data d => d -> u) -> Datetime -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Datetime -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Datetime -> m Datetime # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Datetime -> m Datetime # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Datetime -> m Datetime # | |
Generic Datetime Source # | |
Show Datetime Source # | |
NFData Datetime Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Eq Datetime Source # | |
Ord Datetime Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Hashable Datetime Source # | |
Lift Datetime Source # | |
type Rep Datetime Source # | |
Defined in Hasura.Backends.BigQuery.Types |
BigQuery's conception of an INTEGER/INT64 (they are the same).
Instances
FromJSON Int64 Source # | |
ToJSON Int64 Source # | |
Data Int64 Source # | |
Defined in Hasura.Backends.BigQuery.Types gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Int64 -> c Int64 # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Int64 # dataTypeOf :: Int64 -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Int64) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Int64) # gmapT :: (forall b. Data b => b -> b) -> Int64 -> Int64 # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Int64 -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Int64 -> r # gmapQ :: (forall d. Data d => d -> u) -> Int64 -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Int64 -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Int64 -> m Int64 # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Int64 -> m Int64 # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Int64 -> m Int64 # | |
Generic Int64 Source # | |
Show Int64 Source # | |
NFData Int64 Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Eq Int64 Source # | |
Ord Int64 Source # | |
Hashable Int64 Source # | |
Lift Int64 Source # | |
type Rep Int64 Source # | |
Defined in Hasura.Backends.BigQuery.Types |
data TypedValue Source #
TypedValue | |
|
Instances
intToInt64 :: Int64 -> Int64 Source #
int64Expr :: Int64 -> Expression Source #
BigQuery's conception of a fixed precision decimal.
Instances
FromJSON Decimal Source # | |
ToJSON Decimal Source # | |
Data Decimal Source # | |
Defined in Hasura.Backends.BigQuery.Types gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Decimal -> c Decimal # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Decimal # toConstr :: Decimal -> Constr # dataTypeOf :: Decimal -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Decimal) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Decimal) # gmapT :: (forall b. Data b => b -> b) -> Decimal -> Decimal # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Decimal -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Decimal -> r # gmapQ :: (forall d. Data d => d -> u) -> Decimal -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Decimal -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Decimal -> m Decimal # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Decimal -> m Decimal # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Decimal -> m Decimal # | |
Generic Decimal Source # | |
Show Decimal Source # | |
NFData Decimal Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Eq Decimal Source # | |
Ord Decimal Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Hashable Decimal Source # | |
Lift Decimal Source # | |
type Rep Decimal Source # | |
Defined in Hasura.Backends.BigQuery.Types |
scientificToText :: Scientific -> Text Source #
Convert Scientific
to Text
newtype BigDecimal Source #
BigQuery's conception of a "big" fixed precision decimal.
Instances
BigQuery's conception of a fixed precision decimal.
Instances
FromJSON Float64 Source # | |
ToJSON Float64 Source # | |
Data Float64 Source # | |
Defined in Hasura.Backends.BigQuery.Types gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Float64 -> c Float64 # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Float64 # toConstr :: Float64 -> Constr # dataTypeOf :: Float64 -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Float64) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Float64) # gmapT :: (forall b. Data b => b -> b) -> Float64 -> Float64 # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Float64 -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Float64 -> r # gmapQ :: (forall d. Data d => d -> u) -> Float64 -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Float64 -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Float64 -> m Float64 # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Float64 -> m Float64 # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Float64 -> m Float64 # | |
Generic Float64 Source # | |
Show Float64 Source # | |
NFData Float64 Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Eq Float64 Source # | |
Ord Float64 Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Hashable Float64 Source # | |
Lift Float64 Source # | |
type Rep Float64 Source # | |
Defined in Hasura.Backends.BigQuery.Types |
doubleToFloat64 :: Double -> Float64 Source #
A base-64 encoded binary string.
Instances
FromJSON Base64 Source # | |
ToJSON Base64 Source # | |
Data Base64 Source # | |
Defined in Hasura.Backends.BigQuery.Types gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Base64 -> c Base64 # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Base64 # toConstr :: Base64 -> Constr # dataTypeOf :: Base64 -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Base64) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Base64) # gmapT :: (forall b. Data b => b -> b) -> Base64 -> Base64 # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Base64 -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Base64 -> r # gmapQ :: (forall d. Data d => d -> u) -> Base64 -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Base64 -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Base64 -> m Base64 # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Base64 -> m Base64 # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Base64 -> m Base64 # | |
Generic Base64 Source # | |
Show Base64 Source # | |
NFData Base64 Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Eq Base64 Source # | |
Ord Base64 Source # | |
Hashable Base64 Source # | |
Lift Base64 Source # | |
type Rep Base64 Source # | |
Defined in Hasura.Backends.BigQuery.Types type Rep Base64 = D1 ('MetaData "Base64" "Hasura.Backends.BigQuery.Types" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "Base64" 'PrefixI 'True) (S1 ('MetaSel ('Just "unBase64") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString))) |
Instances
FromJSON Geography Source # | |
ToJSON Geography Source # | |
Data Geography Source # | |
Defined in Hasura.Backends.BigQuery.Types gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Geography -> c Geography # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Geography # toConstr :: Geography -> Constr # dataTypeOf :: Geography -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Geography) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Geography) # gmapT :: (forall b. Data b => b -> b) -> Geography -> Geography # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Geography -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Geography -> r # gmapQ :: (forall d. Data d => d -> u) -> Geography -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Geography -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Geography -> m Geography # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Geography -> m Geography # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Geography -> m Geography # | |
Generic Geography Source # | |
Show Geography Source # | |
NFData Geography Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Eq Geography Source # | |
Ord Geography Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Hashable Geography Source # | |
Lift Geography Source # | |
type Rep Geography Source # | |
Defined in Hasura.Backends.BigQuery.Types |
data ScalarType Source #
Instances
data BooleanOperators a Source #
ASTContains a | |
ASTEquals a | |
ASTTouches a | |
ASTWithin a | |
ASTIntersects a | |
ASTDWithin (DWithinGeogOp a) |
Instances
data FunctionName Source #
FunctionName | |
|
Instances
data ComputedFieldDefinition Source #
The metadata required to define a computed field for a BigQuery table
ComputedFieldDefinition | |
|
Instances
data ArgumentExp v Source #
A argument expression for SQL functions
AEInput v | Value coming from user's input through GraphQL query |
AETableColumn ColumnName | For computed fields, value of column from the table |
Instances
data ComputedFieldReturn Source #
Returning type of the function underlying a computed field
ReturnExistingTable TableName | Returns existing table, needs to be present in the metadata |
ReturnTableSchema [(ColumnName, Name, ScalarType)] | An arbitrary table schema specified by column name and type pairs |
Instances
data FunctionArgument Source #
Function input argument specification
FunctionArgument | |
|
Instances
parseScalarValue :: ScalarType -> Value -> Either QErr Value Source #
isComparableType :: ScalarType -> Bool Source #
isNumType :: ScalarType -> Bool Source #
projectionAlias :: Projection -> Maybe Text Source #
data ExecutionStatistics Source #
Instances
ToJSON ExecutionStatistics Source # | |
Defined in Hasura.Backends.BigQuery.Types toJSON :: ExecutionStatistics -> Value Source # toEncoding :: ExecutionStatistics -> Encoding Source # toJSONList :: [ExecutionStatistics] -> Value Source # toEncodingList :: [ExecutionStatistics] -> Encoding Source # | |
Generic ExecutionStatistics Source # | |
Defined in Hasura.Backends.BigQuery.Types type Rep ExecutionStatistics :: Type -> Type # from :: ExecutionStatistics -> Rep ExecutionStatistics x # to :: Rep ExecutionStatistics x -> ExecutionStatistics # | |
type Rep ExecutionStatistics Source # | |
Defined in Hasura.Backends.BigQuery.Types type Rep ExecutionStatistics = D1 ('MetaData "ExecutionStatistics" "Hasura.Backends.BigQuery.Types" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "ExecutionStatistics" 'PrefixI 'True) (S1 ('MetaSel ('Just "_esJob") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Job))) |