| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Hasura.Backends.BigQuery.Types
Description
Types for Transact-SQL aka T-SQL; the language of SQL Server.
Synopsis
- data Select = Select {
- 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 Join = Join {
- joinSource :: JoinSource
- joinAlias :: EntityAlias
- joinOn :: [(FieldName, FieldName)]
- joinProvenance :: JoinProvenance
- joinFieldName :: Text
- joinExtractPath :: Maybe Text
- joinRightTable :: EntityAlias
- data JoinProvenance
- = OrderByJoinProvenance
- | ObjectJoinProvenance [Text]
- | ArrayAggregateJoinProvenance [(Text, FieldOrigin)]
- | ArrayJoinProvenance [Text]
- | MultiplexProvenance
- data JoinSource = JoinSelect Select
- newtype Where = Where [Expression]
- data Cardinality
- data AsStruct
- data Top
- data Expression
- = ValueExpression Value
- | InExpression Expression Value
- | 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
- = CountAggregate (Countable FieldName)
- | OpAggregates Text (NonEmpty (Text, Expression))
- | OpAggregate Text Expression
- | TextAggregate Text
- data Countable fieldname
- = StarCountable
- | NonNullFieldCountable (NonEmpty fieldname)
- | DistinctCountable (NonEmpty fieldname)
- data From
- data SelectJson = SelectJson {}
- data SelectFromFunction = SelectFromFunction {}
- data OpenJson = OpenJson {}
- data JsonFieldSpec
- data Aliased a = Aliased {
- aliasedThing :: a
- aliasedAlias :: Text
- newtype SchemaName = SchemaName {
- schemaNameParts :: [Text]
- data TableName = TableName {
- tableName :: Text
- tableNameSchema :: Text
- data FieldName = FieldName {
- fieldName :: Text
- fieldNameEntity :: Text
- newtype ColumnName = ColumnName {
- columnName :: Text
- data Comment
- newtype EntityAlias = EntityAlias {
- entityAliasText :: Text
- columnToFieldName :: EntityAlias -> ColumnName -> FieldName
- data Op
- = LessOp
- | LessOrEqualOp
- | MoreOp
- | MoreOrEqualOp
- | InOp
- | NotInOp
- | LikeOp
- | NotLikeOp
- data Value
- newtype Timestamp = Timestamp Text
- newtype Date = Date Text
- newtype Time = Time Text
- newtype Datetime = Datetime Text
- newtype Int64 = Int64 Text
- intToInt64 :: Int64 -> Int64
- int64Expr :: Int64 -> Expression
- newtype Decimal = Decimal Text
- scientificToText :: Scientific -> Text
- newtype BigDecimal = BigDecimal Text
- doubleToBigDecimal :: Double -> BigDecimal
- newtype Float64 = Float64 Text
- doubleToFloat64 :: Double -> Float64
- newtype Base64 = Base64 {}
- newtype Geography = Geography {
- unGeography :: Text
- data ScalarType
- data UnifiedMetadata = UnifiedMetadata {}
- data UnifiedTableMetadata = UnifiedTableMetadata {}
- data UnifiedColumn = UnifiedColumn {
- name :: Text
- type' :: ScalarType
- data UnifiedTableName = UnifiedTableName {}
- data UnifiedObjectRelationship = UnifiedObjectRelationship {
- using :: UnifiedUsing
- name :: Text
- data UnifiedArrayRelationship = UnifiedArrayRelationship {
- using :: UnifiedUsing
- name :: Text
- data UnifiedUsing = UnifiedUsing {}
- data UnifiedOn = UnifiedOn {
- table :: UnifiedTableName
- column :: Text
- data BooleanOperators a
- = ASTContains a
- | ASTEquals a
- | ASTTouches a
- | ASTWithin a
- | ASTIntersects a
- | ASTDWithin (DWithinGeogOp a)
- data FunctionName = FunctionName {
- functionName :: Text
- functionNameSchema :: Maybe Text
- data ComputedFieldDefinition = ComputedFieldDefinition {}
- data ArgumentExp v
- type ComputedFieldImplicitArguments = HashMap FunctionArgName ColumnName
- data ComputedFieldReturn
- = ReturnExistingTable TableName
- | ReturnTableSchema [(ColumnName, Name, ScalarType)]
- data FunctionArgument = FunctionArgument {}
- parseScalarValue :: ScalarType -> Value -> Either QErr Value
- isComparableType :: ScalarType -> Bool
- isNumType :: ScalarType -> Bool
- getGQLTableName :: TableName -> Either QErr Name
- liberalIntegralPrinter :: Coercible Text a => a -> Value
- liberalDecimalPrinter :: Coercible a Text => a -> Value
- liberalInt64Parser :: (Text -> a) -> Value -> Parser a
- liberalDecimalParser :: (Text -> a) -> Value -> Parser a
- projectionAlias :: Projection -> Maybe Text
Documentation
Constructors
| Select | |
Fields
| |
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
Constructors
| PartitionableSelect | |
Fields
| |
Constructors
| ArrayAgg | |
Fields | |
Instances
Constructors
| Reselect | |
Fields | |
Instances
| Eq Reselect Source # | |
| Data Reselect Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods 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 # | |
| Ord Reselect Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| Show Reselect Source # | |
| Generic Reselect Source # | |
| NFData Reselect Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| Hashable Reselect Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| FromJSON Reselect Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| Cacheable 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))) | |
Constructors
| OrderBy | |
Fields | |
Instances
| Eq OrderBy Source # | |
| Data OrderBy Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods 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 # | |
| Ord OrderBy Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| Show OrderBy Source # | |
| Generic OrderBy Source # | |
| NFData OrderBy Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| Hashable OrderBy Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| FromJSON OrderBy Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| ToJSON OrderBy Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods toEncoding :: OrderBy -> Encoding toJSONList :: [OrderBy] -> Value toEncodingList :: [OrderBy] -> Encoding | |
| Cacheable 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
| Eq Order Source # | |
| Data Order Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods 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 # | |
| Ord Order Source # | |
| Show Order Source # | |
| Generic Order Source # | |
| NFData Order Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| Hashable Order Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| FromJSON Order Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| ToJSON Order Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods toEncoding :: Order -> Encoding toJSONList :: [Order] -> Value toEncodingList :: [Order] -> Encoding | |
| Cacheable Order Source # | |
| Lift Order Source # | |
| type Rep Order Source # | |
data NullsOrder Source #
Constructors
| NullsFirst | |
| NullsLast | |
| NullsAnyOrder |
Instances
data FieldOrigin Source #
Constructors
| NoOrigin | |
| AggregateOrigin [Aliased Aggregate] |
Instances
data Projection Source #
Constructors
Instances
data WindowFunction Source #
Constructors
| RowNumberOverPartitionBy (NonEmpty FieldName) (Maybe (NonEmpty OrderBy)) | ROW_NUMBER() OVER(PARTITION BY field) |
Instances
Constructors
| Join | |
Fields
| |
Instances
data JoinProvenance Source #
Constructors
| OrderByJoinProvenance | |
| ObjectJoinProvenance [Text] | |
| ArrayAggregateJoinProvenance [(Text, FieldOrigin)] | |
| ArrayJoinProvenance [Text] | |
| MultiplexProvenance |
Instances
data JoinSource Source #
Constructors
| JoinSelect Select |
Instances
Constructors
| Where [Expression] |
Instances
| Eq Where Source # | |
| Data Where Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods 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 # | |
| Ord Where Source # | |
| Show Where Source # | |
| Generic Where Source # | |
| Semigroup Where Source # | |
| Monoid Where Source # | |
| NFData Where Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| Hashable Where Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| FromJSON Where Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| Cacheable 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
Constructors
| NoAsStruct | |
| AsStruct |
Instances
| Eq AsStruct Source # | |
| Data AsStruct Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods 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 # | |
| Ord AsStruct Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| Show AsStruct Source # | |
| Generic AsStruct Source # | |
| NFData AsStruct Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| Hashable AsStruct Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| FromJSON AsStruct Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| ToJSON AsStruct Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods toEncoding :: AsStruct -> Encoding toJSONList :: [AsStruct] -> Value toEncodingList :: [AsStruct] -> Encoding | |
| Cacheable AsStruct Source # | |
| Lift AsStruct Source # | |
| type Rep AsStruct Source # | |
Instances
| Eq Top Source # | |
| Data Top Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods 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 # | |
| Ord Top Source # | |
| Show Top Source # | |
| Generic Top Source # | |
| Semigroup Top Source # | |
| Monoid Top Source # | |
| NFData Top Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| Hashable Top Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| FromJSON Top Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| ToJSON Top Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| Cacheable 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 #
Constructors
| ValueExpression Value | |
| InExpression Expression Value | |
| 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
Constructors
| CountAggregate (Countable FieldName) | |
| OpAggregates Text (NonEmpty (Text, Expression)) | |
| OpAggregate Text Expression | |
| TextAggregate Text |
Instances
data Countable fieldname Source #
Constructors
| StarCountable | |
| NonNullFieldCountable (NonEmpty fieldname) | |
| DistinctCountable (NonEmpty fieldname) |
Instances
| Lift fieldname => Lift (Countable fieldname :: Type) Source # | |
| Eq fieldname => Eq (Countable fieldname) Source # | |
| Data fieldname => Data (Countable fieldname) Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods 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) # | |
| Ord fieldname => Ord (Countable fieldname) Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods 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 # | |
| Show fieldname => Show (Countable fieldname) Source # | |
| Generic (Countable fieldname) Source # | |
| NFData a => NFData (Countable a) Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| Hashable a => Hashable (Countable a) Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| FromJSON a => FromJSON (Countable a) Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| ToJSON a => ToJSON (Countable a) Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods toJSON :: Countable a -> Value toEncoding :: Countable a -> Encoding toJSONList :: [Countable a] -> Value toEncodingList :: [Countable a] -> Encoding | |
| Cacheable a => Cacheable (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))))) | |
Constructors
| FromQualifiedTable (Aliased TableName) | |
| FromSelect (Aliased Select) | |
| FromSelectJson (Aliased SelectJson) | |
| FromFunction (Aliased SelectFromFunction) |
Instances
data SelectJson Source #
Constructors
| SelectJson | |
Fields
| |
Instances
data SelectFromFunction Source #
Constructors
| SelectFromFunction | |
Fields | |
Instances
Constructors
| OpenJson | |
Fields | |
data JsonFieldSpec Source #
Constructors
| Aliased | |
Fields
| |
Instances
| Functor Aliased Source # | |
| Lift a => Lift (Aliased a :: Type) Source # | |
| Eq a => Eq (Aliased a) Source # | |
| Data a => Data (Aliased a) Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods 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) # | |
| Ord a => Ord (Aliased a) Source # | |
| Show a => Show (Aliased a) Source # | |
| Generic (Aliased a) Source # | |
| NFData a => NFData (Aliased a) Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| Hashable a => Hashable (Aliased a) Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| FromJSON a => FromJSON (Aliased a) Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| ToJSON a => ToJSON (Aliased a) Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods toEncoding :: Aliased a -> Encoding toJSONList :: [Aliased a] -> Value toEncodingList :: [Aliased a] -> Encoding | |
| Cacheable a => Cacheable (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))) | |
newtype SchemaName Source #
Constructors
| SchemaName | |
Fields
| |
Constructors
| TableName | |
Fields
| |
Instances
Constructors
| FieldName | |
Fields
| |
Instances
| Eq FieldName Source # | |
| Data FieldName Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods 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 # | |
| Ord FieldName Source # | |
| Show FieldName Source # | |
| Generic FieldName Source # | |
| NFData FieldName Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| Hashable FieldName Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| FromJSON FieldName Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| ToJSON FieldName Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods toEncoding :: FieldName -> Encoding toJSONList :: [FieldName] -> Value toEncodingList :: [FieldName] -> Encoding | |
| Cacheable 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 #
Constructors
| ColumnName | |
Fields
| |
Instances
Constructors
| DueToPermission | |
| RequestedSingleObject |
newtype EntityAlias Source #
Constructors
| EntityAlias | |
Fields
| |
Instances
columnToFieldName :: EntityAlias -> ColumnName -> FieldName Source #
Constructors
| LessOp | |
| LessOrEqualOp | |
| MoreOp | |
| MoreOrEqualOp | |
| InOp | |
| NotInOp | |
| LikeOp | |
| NotLikeOp |
Instances
| Eq Op Source # | |
| Data Op Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods 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 # | |
| Ord Op Source # | |
| Show Op Source # | |
| Generic Op Source # | |
| NFData Op Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| Hashable Op Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| FromJSON Op Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| ToJSON Op Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| Cacheable 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?
Constructors
Instances
BigQuery's conception of a timestamp.
Constructors
| Timestamp Text |
Instances
| Eq Timestamp Source # | |
| Data Timestamp Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods 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 # | |
| Ord Timestamp Source # | |
| Show Timestamp Source # | |
| Generic Timestamp Source # | |
| NFData Timestamp Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| Hashable Timestamp Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| FromJSON Timestamp Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| ToJSON Timestamp Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods toEncoding :: Timestamp -> Encoding toJSONList :: [Timestamp] -> Value toEncodingList :: [Timestamp] -> Encoding | |
| Cacheable Timestamp Source # | |
| Lift Timestamp Source # | |
| type Rep Timestamp Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
BigQuery's conception of a date.
Constructors
| Date Text |
Instances
| Eq Date Source # | |
| Data Date Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods 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 # | |
| Ord Date Source # | |
| Show Date Source # | |
| Generic Date Source # | |
| NFData Date Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| Hashable Date Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| FromJSON Date Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| ToJSON Date Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods toEncoding :: Date -> Encoding toJSONList :: [Date] -> Value toEncodingList :: [Date] -> Encoding | |
| Cacheable Date Source # | |
| Lift Date Source # | |
| type Rep Date Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
BigQuery's conception of a time.
Constructors
| Time Text |
Instances
| Eq Time Source # | |
| Data Time Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods 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 # | |
| Ord Time Source # | |
| Show Time Source # | |
| Generic Time Source # | |
| NFData Time Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| Hashable Time Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| FromJSON Time Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| ToJSON Time Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods toEncoding :: Time -> Encoding toJSONList :: [Time] -> Value toEncodingList :: [Time] -> Encoding | |
| Cacheable Time Source # | |
| Lift Time Source # | |
| type Rep Time Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
BigQuery's conception of a datetime.
Constructors
| Datetime Text |
Instances
| Eq Datetime Source # | |
| Data Datetime Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods 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 # | |
| Ord Datetime Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| Show Datetime Source # | |
| Generic Datetime Source # | |
| NFData Datetime Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| Hashable Datetime Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| FromJSON Datetime Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| ToJSON Datetime Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods toEncoding :: Datetime -> Encoding toJSONList :: [Datetime] -> Value toEncodingList :: [Datetime] -> Encoding | |
| Cacheable 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).
Constructors
| Int64 Text |
Instances
| Eq Int64 Source # | |
| Data Int64 Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods 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 # | |
| Ord Int64 Source # | |
| Show Int64 Source # | |
| Generic Int64 Source # | |
| NFData Int64 Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| Hashable Int64 Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| FromJSON Int64 Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| ToJSON Int64 Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods toEncoding :: Int64 -> Encoding toJSONList :: [Int64] -> Value toEncodingList :: [Int64] -> Encoding | |
| Cacheable Int64 Source # | |
| Lift Int64 Source # | |
| type Rep Int64 Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
intToInt64 :: Int64 -> Int64 Source #
int64Expr :: Int64 -> Expression Source #
BigQuery's conception of a fixed precision decimal.
Constructors
| Decimal Text |
Instances
| Eq Decimal Source # | |
| Data Decimal Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods 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 # | |
| Ord Decimal Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| Show Decimal Source # | |
| Generic Decimal Source # | |
| NFData Decimal Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| Hashable Decimal Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| FromJSON Decimal Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| ToJSON Decimal Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods toEncoding :: Decimal -> Encoding toJSONList :: [Decimal] -> Value toEncodingList :: [Decimal] -> Encoding | |
| Cacheable 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.
Constructors
| BigDecimal Text |
Instances
BigQuery's conception of a fixed precision decimal.
Constructors
| Float64 Text |
Instances
| Eq Float64 Source # | |
| Data Float64 Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods 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 # | |
| Ord Float64 Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| Show Float64 Source # | |
| Generic Float64 Source # | |
| NFData Float64 Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| Hashable Float64 Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| FromJSON Float64 Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| ToJSON Float64 Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods toEncoding :: Float64 -> Encoding toJSONList :: [Float64] -> Value toEncodingList :: [Float64] -> Encoding | |
| Cacheable 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.
Constructors
| Base64 | |
Fields | |
Instances
| Eq Base64 Source # | |
| Data Base64 Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods 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 # | |
| Ord Base64 Source # | |
| Show Base64 Source # | |
| Generic Base64 Source # | |
| NFData Base64 Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| Hashable Base64 Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| FromJSON Base64 Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| ToJSON Base64 Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods toEncoding :: Base64 -> Encoding toJSONList :: [Base64] -> Value toEncodingList :: [Base64] -> Encoding | |
| Cacheable 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))) | |
Constructors
| Geography | |
Fields
| |
Instances
| Eq Geography Source # | |
| Data Geography Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods 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 # | |
| Ord Geography Source # | |
| Show Geography Source # | |
| Generic Geography Source # | |
| NFData Geography Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| Hashable Geography Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| FromJSON Geography Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
| ToJSON Geography Source # | |
Defined in Hasura.Backends.BigQuery.Types Methods toEncoding :: Geography -> Encoding toJSONList :: [Geography] -> Value toEncodingList :: [Geography] -> Encoding | |
| Cacheable Geography Source # | |
| Lift Geography Source # | |
| type Rep Geography Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
data ScalarType Source #
Constructors
Instances
data UnifiedMetadata Source #
Constructors
| UnifiedMetadata | |
Fields | |
data UnifiedTableMetadata Source #
Constructors
| UnifiedTableMetadata | |
data UnifiedColumn Source #
Constructors
| UnifiedColumn | |
Fields
| |
data UnifiedTableName Source #
Constructors
| UnifiedTableName | |
data UnifiedObjectRelationship Source #
Constructors
| UnifiedObjectRelationship | |
Fields
| |
data UnifiedArrayRelationship Source #
Constructors
| UnifiedArrayRelationship | |
Fields
| |
data UnifiedUsing Source #
Constructors
| UnifiedUsing | |
Fields | |
data BooleanOperators a Source #
Constructors
| ASTContains a | |
| ASTEquals a | |
| ASTTouches a | |
| ASTWithin a | |
| ASTIntersects a | |
| ASTDWithin (DWithinGeogOp a) |
Instances
data FunctionName Source #
Constructors
| FunctionName | |
Fields
| |
Instances
data ComputedFieldDefinition Source #
The metadata required to define a computed field for a BigQuery table
Constructors
| ComputedFieldDefinition | |
Fields
| |
Instances
data ArgumentExp v Source #
A argument expression for SQL functions
Constructors
| AEInput v | Value coming from user's input through GraphQL query |
| AETableColumn ColumnName | For computed fields, value of column from the table |
Instances
type ComputedFieldImplicitArguments = HashMap FunctionArgName ColumnName Source #
data ComputedFieldReturn Source #
Returning type of the function underlying a computed field
Constructors
| 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
Constructors
| FunctionArgument | |
Fields
| |
Instances
parseScalarValue :: ScalarType -> Value -> Either QErr Value Source #
isComparableType :: ScalarType -> Bool Source #
isNumType :: ScalarType -> Bool Source #
liberalIntegralPrinter :: Coercible Text a => a -> Value Source #
liberalDecimalPrinter :: Coercible a Text => a -> Value Source #
liberalInt64Parser :: (Text -> a) -> Value -> Parser a Source #
Parse from text by simply validating it contains digits; otherwise, require a JSON integer.
liberalDecimalParser :: (Text -> a) -> Value -> Parser a Source #
Parse either a JSON native double number, or a text string containing something vaguely in scientific notation. In either case, producing a wrapped Text as the final result.
projectionAlias :: Projection -> Maybe Text Source #