Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data MetadataError = RestProblem RestProblem
- data RestProblem
- data RestTableList = RestTableList {
- nextPageToken :: Maybe Text
- tables :: [RestTableBrief]
- data RestTableBrief = RestTableBrief {}
- data RestTableReference = RestTableReference {}
- data RestTable = RestTable {}
- data RestTableSchema = RestTableSchema {
- fields :: [RestFieldSchema]
- data RestFieldSchema = RestFieldSchema {}
- data Mode
- data RestType
- getTables :: MonadIO m => BigQuerySourceConfig -> m (Either RestProblem [RestTable])
- getTablesForDataSet :: MonadIO m => BigQueryConnection -> Text -> m (Either RestProblem [RestTable])
- getTable :: MonadIO m => BigQueryConnection -> Text -> Text -> m (Either RestProblem RestTable)
- encodeParams :: [(Text, Text)] -> Text
- data RestRoutineType
- data RestArgument = RestArgument {
- _raName :: Maybe Text
- _raDataType :: Maybe RestType
- data RestStandardSqlField = RestStandardSqlField {}
- data RestStandardSqlTableType = RestStandardSqlTableType {}
- data RestRoutineReference = RestRoutineReference {}
- routineReferenceToFunctionName :: RestRoutineReference -> FunctionName
- data RestRoutine = RestRoutine {}
- data RestRoutineList = RestRoutineList {
- _rrlRoutines :: [RestRoutine]
- _rrlNextPageToken :: Maybe Text
- getRoutines :: MonadIO m => BigQuerySourceConfig -> m (Either RestProblem [RestRoutine])
- getRoutinesForDataSet :: MonadIO m => BigQueryConnection -> Text -> m (Either RestProblem [RestRoutine])
Documentation
data MetadataError Source #
Instances
Show MetadataError Source # | |
Defined in Hasura.Backends.BigQuery.Meta showsPrec :: Int -> MetadataError -> ShowS # show :: MetadataError -> String # showList :: [MetadataError] -> ShowS # |
data RestProblem Source #
data RestTableList Source #
RestTableList | |
|
data RestTableReference Source #
Instances
Instances
Show RestTable Source # | |
Generic RestTable Source # | |
FromJSON RestTable Source # | |
Defined in Hasura.Backends.BigQuery.Meta parseJSON :: Value -> Parser RestTable parseJSONList :: Value -> Parser [RestTable] | |
type Rep RestTable Source # | |
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 #
Instances
Show RestTableSchema Source # | |
Defined in Hasura.Backends.BigQuery.Meta showsPrec :: Int -> RestTableSchema -> ShowS # show :: RestTableSchema -> String # showList :: [RestTableSchema] -> ShowS # | |
Generic RestTableSchema Source # | |
Defined in Hasura.Backends.BigQuery.Meta type Rep RestTableSchema :: Type -> Type # from :: RestTableSchema -> Rep RestTableSchema x # to :: Rep RestTableSchema x -> RestTableSchema # | |
FromJSON RestTableSchema Source # | |
Defined in Hasura.Backends.BigQuery.Meta parseJSON :: Value -> Parser RestTableSchema parseJSONList :: Value -> Parser [RestTableSchema] | |
type Rep RestTableSchema Source # | |
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 #
RestFieldSchema | |
|
Instances
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 #
The fine-grained type of the routine Ref: https://cloud.google.com/bigquery/docs/reference/rest/v2/routines#RoutineType
Instances
data RestArgument Source #
Input argument of a function/routine. Ref: https://cloud.google.com/bigquery/docs/reference/rest/v2/routines#Argument
RestArgument | |
|
Instances
data RestStandardSqlField Source #
A field or a column. Ref: https://cloud.google.com/bigquery/docs/reference/rest/v2/StandardSqlField
Instances
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
Show RestStandardSqlTableType Source # | |
Defined in Hasura.Backends.BigQuery.Meta showsPrec :: Int -> RestStandardSqlTableType -> ShowS # show :: RestStandardSqlTableType -> String # showList :: [RestStandardSqlTableType] -> ShowS # | |
Generic RestStandardSqlTableType Source # | |
Defined in Hasura.Backends.BigQuery.Meta type Rep RestStandardSqlTableType :: Type -> Type # | |
FromJSON RestStandardSqlTableType Source # | |
Defined in Hasura.Backends.BigQuery.Meta parseJSON :: Value -> Parser RestStandardSqlTableType parseJSONList :: Value -> Parser [RestStandardSqlTableType] | |
type Rep RestStandardSqlTableType Source # | |
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 #
Id path of a routine. Ref: https://cloud.google.com/bigquery/docs/reference/rest/v2/routines#RoutineReference
Instances
data RestRoutine Source #
A user-defined function. Ref: https://cloud.google.com/bigquery/docs/reference/rest/v2/routines#Routine
RestRoutine | |
|
Instances
data RestRoutineList Source #
List of routines Ref: https://cloud.google.com/bigquery/docs/reference/rest/v2/routines/list
RestRoutineList | |
|
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.