graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hasura.Backends.BigQuery.Meta

Synopsis

Documentation

data MetadataError Source #

Constructors

RestProblem RestProblem 

Instances

Instances details
Show MetadataError Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

data RestTable Source #

Instances

Instances details
FromJSON RestTable Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Generic RestTable Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Associated Types

type Rep RestTable :: Type -> Type #

Show RestTable Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

type Rep RestTable Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

type Rep RestTable = D1 ('MetaData "RestTable" "Hasura.Backends.BigQuery.Meta" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "RestTable" 'PrefixI 'True) (S1 ('MetaSel ('Just "tableReference") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RestTableReference) :*: S1 ('MetaSel ('Just "schema") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RestTableSchema)))

data RestTableSchema Source #

Constructors

RestTableSchema 

Fields

Instances

Instances details
FromJSON RestTableSchema Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Generic RestTableSchema Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Associated Types

type Rep RestTableSchema :: Type -> Type #

Show RestTableSchema Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

type Rep RestTableSchema Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

type Rep RestTableSchema = D1 ('MetaData "RestTableSchema" "Hasura.Backends.BigQuery.Meta" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "RestTableSchema" 'PrefixI 'True) (S1 ('MetaSel ('Just "fields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [RestFieldSchema])))

data RestFieldSchema Source #

Constructors

RestFieldSchema 

Fields

  • name :: Text
     
  • type' :: RestType

    The field data type. Possible values include STRING, BYTES, INTEGER, INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), BOOLEAN, BOOL (same as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, GEOGRAPHY, NUMERIC, RECORD (where RECORD indicates that the field contains a nested schema) or STRUCT (same as RECORD).

  • mode :: Mode
     

data Mode Source #

Constructors

Nullable 
Required 
Repeated 

Instances

Instances details
FromJSON Mode Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Show Mode Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Methods

showsPrec :: Int -> Mode -> ShowS #

show :: Mode -> String #

showList :: [Mode] -> ShowS #

getTables :: MonadIO m => BigQuerySourceConfig -> m (Either RestProblem [RestTable]) Source #

Get all tables from all specified data sets.

data RestRoutineType Source #

Instances

Instances details
FromJSON RestRoutineType Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

ToJSON RestRoutineType Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Generic RestRoutineType Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Associated Types

type Rep RestRoutineType :: Type -> Type #

Show RestRoutineType Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Eq RestRoutineType Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

type Rep RestRoutineType Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

type Rep RestRoutineType = D1 ('MetaData "RestRoutineType" "Hasura.Backends.BigQuery.Meta" "graphql-engine-1.0.0-inplace" 'False) ((C1 ('MetaCons "ROUTINE_TYPE_UNSPECIFIED" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SCALAR_FUNCTION" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PROCEDURE" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TABLE_VALUED_FUNCTION" 'PrefixI 'False) (U1 :: Type -> Type)))

data RestArgument Source #

Constructors

RestArgument 

Fields

Instances

Instances details
FromJSON RestArgument Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

ToJSON RestArgument Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Generic RestArgument Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Associated Types

type Rep RestArgument :: Type -> Type #

Show RestArgument Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Eq RestArgument Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

type Rep RestArgument Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

type Rep RestArgument = D1 ('MetaData "RestArgument" "Hasura.Backends.BigQuery.Meta" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "RestArgument" 'PrefixI 'True) (S1 ('MetaSel ('Just "_raName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "_raDataType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RestType))))

data RestStandardSqlField Source #

Constructors

RestStandardSqlField 

Fields

Instances

Instances details
FromJSON RestStandardSqlField Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

ToJSON RestStandardSqlField Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Generic RestStandardSqlField Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Associated Types

type Rep RestStandardSqlField :: Type -> Type #

Show RestStandardSqlField Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Eq RestStandardSqlField Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

type Rep RestStandardSqlField Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

type Rep RestStandardSqlField = D1 ('MetaData "RestStandardSqlField" "Hasura.Backends.BigQuery.Meta" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "RestStandardSqlField" 'PrefixI 'True) (S1 ('MetaSel ('Just "_rssfName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "_rssType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RestType))))

data RestStandardSqlTableType Source #

A table type, which has only list of columns with names and types. Ref: https://cloud.google.com/bigquery/docs/reference/rest/v2/routines#StandardSqlTableType

Instances

Instances details
FromJSON RestStandardSqlTableType Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

ToJSON RestStandardSqlTableType Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Generic RestStandardSqlTableType Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Associated Types

type Rep RestStandardSqlTableType :: Type -> Type #

Show RestStandardSqlTableType Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Eq RestStandardSqlTableType Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

type Rep RestStandardSqlTableType Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

type Rep RestStandardSqlTableType = D1 ('MetaData "RestStandardSqlTableType" "Hasura.Backends.BigQuery.Meta" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "RestStandardSqlTableType" 'PrefixI 'True) (S1 ('MetaSel ('Just "_rrttColumns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [RestStandardSqlField])))

data RestRoutineReference Source #

Instances

Instances details
FromJSON RestRoutineReference Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

ToJSON RestRoutineReference Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Generic RestRoutineReference Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Associated Types

type Rep RestRoutineReference :: Type -> Type #

Show RestRoutineReference Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Eq RestRoutineReference Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

type Rep RestRoutineReference Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

type Rep RestRoutineReference = D1 ('MetaData "RestRoutineReference" "Hasura.Backends.BigQuery.Meta" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "RestRoutineReference" 'PrefixI 'True) (S1 ('MetaSel ('Just "datasetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "projectId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "routineId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

data RestRoutine Source #

Constructors

RestRoutine 

Fields

Instances

Instances details
FromJSON RestRoutine Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

ToJSON RestRoutine Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Generic RestRoutine Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Associated Types

type Rep RestRoutine :: Type -> Type #

Show RestRoutine Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Eq RestRoutine Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

type Rep RestRoutine Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

getRoutines :: MonadIO m => BigQuerySourceConfig -> m (Either RestProblem [RestRoutine]) Source #

Get all routines from all specified data sets.