Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
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
Instances
Eq Reselect Source # | |
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 # | |
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 parseJSON :: Value -> Parser Reselect parseJSONList :: Value -> Parser [Reselect] | |
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))) |
Instances
Instances
Eq 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 # | |
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 parseJSON :: Value -> Parser Order parseJSONList :: Value -> Parser [Order] | |
ToJSON Order Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Cacheable 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
Join | |
|
Instances
data JoinProvenance Source #
OrderByJoinProvenance | |
ObjectJoinProvenance [Text] | |
ArrayAggregateJoinProvenance [(Text, FieldOrigin)] | |
ArrayJoinProvenance [Text] | |
MultiplexProvenance |
Instances
data JoinSource Source #
Instances
Instances
Eq Where Source # | |
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 # | |
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 parseJSON :: Value -> Parser Where parseJSONList :: Value -> Parser [Where] | |
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
Instances
Eq 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 # | |
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 parseJSON :: Value -> Parser AsStruct parseJSONList :: Value -> Parser [AsStruct] | |
ToJSON AsStruct Source # | |
Defined in Hasura.Backends.BigQuery.Types 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 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 parseJSON :: Value -> Parser Top parseJSONList :: Value -> Parser [Top] | |
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 #
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
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 # | |
Eq fieldname => Eq (Countable fieldname) 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) # | |
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 # | |
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 parseJSON :: Value -> Parser (Countable a) parseJSONList :: Value -> Parser [Countable a] | |
ToJSON a => ToJSON (Countable a) Source # | |
Defined in Hasura.Backends.BigQuery.Types 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))))) |
FromQualifiedTable (Aliased TableName) | |
FromSelect (Aliased Select) | |
FromSelectJson (Aliased SelectJson) | |
FromFunction (Aliased SelectFromFunction) |
Instances
data SelectJson Source #
Instances
data SelectFromFunction Source #
Instances
data JsonFieldSpec Source #
Aliased | |
|
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 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 # | |
Defined in Hasura.Backends.BigQuery.Types | |
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 parseJSON :: Value -> Parser (Aliased a) parseJSONList :: Value -> Parser [Aliased a] | |
ToJSON a => ToJSON (Aliased a) Source # | |
Defined in Hasura.Backends.BigQuery.Types 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 #
SchemaName | |
|
TableName | |
|
Instances
FieldName | |
|
Instances
newtype ColumnName Source #
ColumnName | |
|
Instances
newtype EntityAlias Source #
EntityAlias | |
|
Instances
columnToFieldName :: EntityAlias -> ColumnName -> FieldName Source #
Instances
Eq 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 # | |
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 parseJSON :: Value -> Parser Op parseJSONList :: Value -> Parser [Op] | |
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?
Instances
BigQuery's conception of a timestamp.
Timestamp Text |
Instances
BigQuery's conception of a date.
Date Text |
Instances
Eq 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 # | |
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 parseJSON :: Value -> Parser Date parseJSONList :: Value -> Parser [Date] | |
ToJSON Date Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Cacheable Date Source # | |
Lift Date Source # | |
type Rep Date Source # | |
Defined in Hasura.Backends.BigQuery.Types |
BigQuery's conception of a time.
Time Text |
Instances
Eq 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 # | |
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 parseJSON :: Value -> Parser Time parseJSONList :: Value -> Parser [Time] | |
ToJSON Time Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
Cacheable Time Source # | |
Lift Time Source # | |
type Rep Time Source # | |
Defined in Hasura.Backends.BigQuery.Types |
BigQuery's conception of a datetime.
Datetime Text |
Instances
Eq 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 # | |
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 parseJSON :: Value -> Parser Datetime parseJSONList :: Value -> Parser [Datetime] | |
ToJSON Datetime Source # | |
Defined in Hasura.Backends.BigQuery.Types 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).
Int64 Text |
Instances
Eq 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 # | |
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 parseJSON :: Value -> Parser Int64 parseJSONList :: Value -> Parser [Int64] | |
ToJSON Int64 Source # | |
Defined in Hasura.Backends.BigQuery.Types | |
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.
Decimal Text |
Instances
Eq 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 # | |
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 parseJSON :: Value -> Parser Decimal parseJSONList :: Value -> Parser [Decimal] | |
ToJSON Decimal Source # | |
Defined in Hasura.Backends.BigQuery.Types 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.
BigDecimal Text |
Instances
BigQuery's conception of a fixed precision decimal.
Float64 Text |
Instances
Eq 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 # | |
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 parseJSON :: Value -> Parser Float64 parseJSONList :: Value -> Parser [Float64] | |
ToJSON Float64 Source # | |
Defined in Hasura.Backends.BigQuery.Types 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.
Instances
Eq 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 # | |
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 parseJSON :: Value -> Parser Base64 parseJSONList :: Value -> Parser [Base64] | |
ToJSON Base64 Source # | |
Defined in Hasura.Backends.BigQuery.Types 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))) |
Geography | |
|
Instances
data ScalarType Source #
Instances
data UnifiedTableMetadata Source #
data UnifiedColumn Source #
UnifiedColumn | |
|
data UnifiedObjectRelationship Source #
UnifiedObjectRelationship | |
|
data UnifiedArrayRelationship Source #
UnifiedArrayRelationship | |
|
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
type ComputedFieldImplicitArguments = HashMap FunctionArgName ColumnName Source #
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 #
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 #