Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- bqDBQueryPlan :: forall m. MonadError QErr m => UserInfo -> Environment -> SourceName -> SourceConfig 'BigQuery -> QueryDB 'BigQuery Void (UnpreparedValue 'BigQuery) -> m (DBStepInfo 'BigQuery)
- recordSetToEncJSON :: Cardinality -> RecordSet -> EncJSON
- bqDBMutationPlan :: forall m. MonadError QErr m => UserInfo -> StringifyNumbers -> SourceName -> SourceConfig 'BigQuery -> MutationDB 'BigQuery Void (UnpreparedValue 'BigQuery) -> m (DBStepInfo 'BigQuery)
- bqDBQueryExplain :: MonadError QErr m => RootFieldAlias -> UserInfo -> SourceName -> SourceConfig 'BigQuery -> QueryDB 'BigQuery Void (UnpreparedValue 'BigQuery) -> m (AnyBackend DBStepInfo)
- selectSQLTextForExplain :: Select -> Text
- bqDBRemoteRelationshipPlan :: forall m. MonadError QErr m => UserInfo -> SourceName -> SourceConfig 'BigQuery -> NonEmpty Object -> HashMap FieldName (Column 'BigQuery, ScalarType 'BigQuery) -> FieldName -> (FieldName, SourceRelationshipSelection 'BigQuery Void UnpreparedValue) -> m (DBStepInfo 'BigQuery)
Documentation
bqDBQueryPlan :: forall m. MonadError QErr m => UserInfo -> Environment -> SourceName -> SourceConfig 'BigQuery -> QueryDB 'BigQuery Void (UnpreparedValue 'BigQuery) -> m (DBStepInfo 'BigQuery) Source #
recordSetToEncJSON :: Cardinality -> RecordSet -> EncJSON Source #
Convert the dataloader's RecordSet
type to JSON.
bqDBMutationPlan :: forall m. MonadError QErr m => UserInfo -> StringifyNumbers -> SourceName -> SourceConfig 'BigQuery -> MutationDB 'BigQuery Void (UnpreparedValue 'BigQuery) -> m (DBStepInfo 'BigQuery) Source #
bqDBQueryExplain :: MonadError QErr m => RootFieldAlias -> UserInfo -> SourceName -> SourceConfig 'BigQuery -> QueryDB 'BigQuery Void (UnpreparedValue 'BigQuery) -> m (AnyBackend DBStepInfo) Source #
selectSQLTextForExplain :: Select -> Text Source #
Get the SQL text for a select, with parameters left as $1, $2, .. holes.
bqDBRemoteRelationshipPlan Source #
:: 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