graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
LanguageHaskell2010

Hasura.Backends.BigQuery.Instances.Execute

Synopsis

Documentation

recordSetToEncJSON :: Cardinality -> RecordSet -> EncJSON Source #

Convert the dataloader's RecordSet type to JSON.

selectSQLTextForExplain :: Select -> Text Source #

Get the SQL text for a select, with parameters left as $1, $2, .. holes.

bqDBRemoteRelationshipPlan Source #

Arguments

:: forall m. MonadError QErr m 
=> UserInfo 
-> SourceName 
-> SourceConfig 'BigQuery 
-> NonEmpty Object

List of json objects, each of which becomes a row of the table.

-> HashMap FieldName (Column 'BigQuery, ScalarType 'BigQuery)

The above objects have this schema

XXX: What is this for/what does this mean?

-> FieldName

This is a field name from the lhs that *has* to be selected in the response along with the relationship.

-> (FieldName, SourceRelationshipSelection 'BigQuery Void UnpreparedValue) 
-> m (DBStepInfo 'BigQuery) 

Construct an action (i.e. DBStepInfo) which can marshal some remote relationship information into a form that BigQuery can query against.

XXX: Currently unimplemented; the Postgres implementation uses jsonb_to_recordset to query the remote relationship, however this functionality doesn't exist in BigQuery.

NOTE: The following typeclass constraints will be necessary when implementing this function for real:

  MonadQueryTags m
  Backend 'BigQuery

Orphan instances

BackendExecute 'BigQuery Source # 
Instance details

Methods

mkDBQueryPlan :: (MonadError QErr m, MonadQueryTags m, MonadReader QueryTagsComment m) => UserInfo -> Environment -> SourceName -> SourceConfig 'BigQuery -> QueryDB 'BigQuery Void (UnpreparedValue 'BigQuery) -> m (DBStepInfo 'BigQuery) Source #

mkDBMutationPlan :: (MonadError QErr m, MonadQueryTags m, MonadReader QueryTagsComment m) => UserInfo -> StringifyNumbers -> SourceName -> SourceConfig 'BigQuery -> MutationDB 'BigQuery Void (UnpreparedValue 'BigQuery) -> m (DBStepInfo 'BigQuery) Source #

mkLiveQuerySubscriptionPlan :: (MonadError QErr m, MonadIO m, MonadBaseControl IO m, MonadReader QueryTagsComment m) => UserInfo -> SourceName -> SourceConfig 'BigQuery -> Maybe Name -> RootFieldMap (QueryDB 'BigQuery Void (UnpreparedValue 'BigQuery)) -> m (SubscriptionQueryPlan 'BigQuery (MultiplexedQuery 'BigQuery)) Source #

mkDBStreamingSubscriptionPlan :: (MonadError QErr m, MonadIO m, MonadBaseControl IO m, MonadReader QueryTagsComment m) => UserInfo -> SourceName -> SourceConfig 'BigQuery -> (RootFieldAlias, QueryDB 'BigQuery Void (UnpreparedValue 'BigQuery)) -> m (SubscriptionQueryPlan 'BigQuery (MultiplexedQuery 'BigQuery)) Source #

mkDBQueryExplain :: MonadError QErr m => RootFieldAlias -> UserInfo -> SourceName -> SourceConfig 'BigQuery -> QueryDB 'BigQuery Void (UnpreparedValue 'BigQuery) -> m (AnyBackend DBStepInfo) Source #

mkSubscriptionExplain :: (MonadError QErr m, MonadIO m, MonadBaseControl IO m) => SubscriptionQueryPlan 'BigQuery (MultiplexedQuery 'BigQuery) -> m SubscriptionQueryPlanExplanation Source #

mkDBRemoteRelationshipPlan :: (MonadError QErr m, MonadQueryTags m) => UserInfo -> SourceName -> SourceConfig 'BigQuery -> NonEmpty Object -> HashMap FieldName (Column 'BigQuery, ScalarType 'BigQuery) -> FieldName -> (FieldName, SourceRelationshipSelection 'BigQuery Void UnpreparedValue) -> m (DBStepInfo 'BigQuery) Source #