graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
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 RestTableReference Source #

Constructors

RestTableReference 

Fields

Instances

Instances details
Show RestTableReference Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Generic RestTableReference Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Associated Types

type Rep RestTableReference :: Type -> Type #

FromJSON RestTableReference Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Methods

parseJSON :: Value -> Parser RestTableReference

parseJSONList :: Value -> Parser [RestTableReference]

type Rep RestTableReference Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

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

data RestTable Source #

Instances

Instances details
Show 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 #

FromJSON RestTable Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Methods

parseJSON :: Value -> Parser RestTable

parseJSONList :: Value -> Parser [RestTable]

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
Show 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 #

FromJSON RestTableSchema Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Methods

parseJSON :: Value -> Parser RestTableSchema

parseJSONList :: Value -> Parser [RestTableSchema]

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
     

Instances

Instances details
Show RestFieldSchema Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Generic RestFieldSchema Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Associated Types

type Rep RestFieldSchema :: Type -> Type #

FromJSON RestFieldSchema Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Methods

parseJSON :: Value -> Parser RestFieldSchema

parseJSONList :: Value -> Parser [RestFieldSchema]

type Rep RestFieldSchema Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

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

data Mode Source #

Constructors

Nullable 
Required 
Repeated 

Instances

Instances details
Show Mode Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Methods

showsPrec :: Int -> Mode -> ShowS #

show :: Mode -> String #

showList :: [Mode] -> ShowS #

FromJSON Mode Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Methods

parseJSON :: Value -> Parser Mode

parseJSONList :: Value -> Parser [Mode]

data RestType Source #

Instances

Instances details
Show RestType Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

FromJSON RestType Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Methods

parseJSON :: Value -> Parser RestType

parseJSONList :: Value -> Parser [RestType]

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

Get all tables from all specified data sets.

getTablesForDataSet :: MonadIO m => BigQueryConnection -> Text -> m (Either RestProblem [RestTable]) Source #

Get tables in the dataset.

getTable :: MonadIO m => BigQueryConnection -> Text -> Text -> m (Either RestProblem RestTable) Source #

Get tables in the schema.

encodeParams :: [(Text, Text)] -> Text Source #

data RestRoutineType Source #

Instances

Instances details
Eq RestRoutineType Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Show 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 #

FromJSON RestRoutineType Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Methods

parseJSON :: Value -> Parser RestRoutineType

parseJSONList :: Value -> Parser [RestRoutineType]

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
Show 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 #

FromJSON RestArgument Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Methods

parseJSON :: Value -> Parser RestArgument

parseJSONList :: Value -> Parser [RestArgument]

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
Show 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 #

FromJSON RestStandardSqlField Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Methods

parseJSON :: Value -> Parser RestStandardSqlField

parseJSONList :: Value -> Parser [RestStandardSqlField]

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
Show 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 #

FromJSON RestStandardSqlTableType Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Methods

parseJSON :: Value -> Parser RestStandardSqlTableType

parseJSONList :: Value -> Parser [RestStandardSqlTableType]

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 #

Constructors

RestRoutineReference 

Fields

Instances

Instances details
Show 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 #

FromJSON RestRoutineReference Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Methods

parseJSON :: Value -> Parser RestRoutineReference

parseJSONList :: Value -> Parser [RestRoutineReference]

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
Show 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 #

FromJSON RestRoutine Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Meta

Methods

parseJSON :: Value -> Parser RestRoutine

parseJSONList :: Value -> Parser [RestRoutine]

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.

getRoutinesForDataSet :: MonadIO m => BigQueryConnection -> Text -> m (Either RestProblem [RestRoutine]) Source #

Get routines in the dataset.