Methods
buildComputedFieldInfo :: MonadError QErr m => HashSet (TableName 'BigQuery) -> TableName 'BigQuery -> HashSet (Column 'BigQuery) -> ComputedFieldName -> ComputedFieldDefinition 'BigQuery -> RawFunctionInfo 'BigQuery -> Comment -> m (ComputedFieldInfo 'BigQuery) Source #
fetchAndValidateEnumValues :: (MonadIO m, MonadBaseControl IO m) => SourceConfig 'BigQuery -> TableName 'BigQuery -> Maybe (PrimaryKey 'BigQuery (RawColumnInfo 'BigQuery)) -> [RawColumnInfo 'BigQuery] -> m (Either QErr EnumValues) Source #
resolveBackendInfo :: forall arr (m :: Type -> Type). (ArrowChoice arr, ArrowCache m arr, ArrowDistribute arr, ArrowWriter (Seq CollectItem) arr, MonadIO m, MonadBaseControl IO m, ProvidesNetwork m) => Logger Hasura -> arr (Dependency (Maybe (BackendInvalidationKeys 'BigQuery)), BackendConfig 'BigQuery) (BackendInfo 'BigQuery) Source #
resolveSourceConfig :: (MonadIO m, MonadBaseControl IO m, MonadResolveSource m) => SourceName -> SourceConnConfiguration 'BigQuery -> BackendSourceKind 'BigQuery -> BackendInfo 'BigQuery -> Environment -> Manager -> m (Either QErr (SourceConfig 'BigQuery)) Source #
resolveDatabaseMetadata :: (MonadIO m, MonadBaseControl IO m, MonadResolveSource m) => Logger Hasura -> SourceMetadata 'BigQuery -> SourceConfig 'BigQuery -> m (Either QErr (DBObjectsIntrospection 'BigQuery)) Source #
parseBoolExpOperations :: MonadError QErr m => ValueParser 'BigQuery m v -> FieldInfoMap (FieldInfo 'BigQuery) -> FieldInfoMap (FieldInfo 'BigQuery) -> ColumnReference 'BigQuery -> Value -> m [OpExpG 'BigQuery v] Source #
buildObjectRelationshipInfo :: MonadError QErr m => SourceConfig 'BigQuery -> SourceName -> HashMap (TableName 'BigQuery) (HashSet (ForeignKey 'BigQuery)) -> TableName 'BigQuery -> ObjRelDef 'BigQuery -> m (RelInfo 'BigQuery, Seq SchemaDependency) Source #
buildArrayRelationshipInfo :: MonadError QErr m => SourceConfig 'BigQuery -> SourceName -> HashMap (TableName 'BigQuery) (HashSet (ForeignKey 'BigQuery)) -> TableName 'BigQuery -> ArrRelDef 'BigQuery -> m (RelInfo 'BigQuery, Seq SchemaDependency) Source #
buildFunctionInfo :: MonadError QErr m => SourceName -> FunctionName 'BigQuery -> SystemDefined -> FunctionConfig 'BigQuery -> FunctionPermissionsMap -> RawFunctionInfo 'BigQuery -> Maybe Text -> NamingCase -> m (FunctionInfo 'BigQuery, SchemaDependency) Source #
updateColumnInEventTrigger :: TableName 'BigQuery -> Column 'BigQuery -> Column 'BigQuery -> TableName 'BigQuery -> EventTriggerConf 'BigQuery -> EventTriggerConf 'BigQuery Source #
parseCollectableType :: (MonadError QErr m, MonadReader r m, Has (ScalarTypeParsingContext 'BigQuery) r) => CollectableType (ColumnType 'BigQuery) -> Value -> m (PartialSQLExp 'BigQuery) Source #
postDropSourceHook :: (MonadError QErr m, MonadIO m, MonadBaseControl IO m) => SourceConfig 'BigQuery -> TableEventTriggers 'BigQuery -> m () Source #
validateRelationship :: MonadError QErr m => TableCache 'BigQuery -> TableName 'BigQuery -> Either (ObjRelDef 'BigQuery) (ArrRelDef 'BigQuery) -> m () Source #
buildComputedFieldBooleanExp :: (MonadError QErr m, TableCoreInfoRM 'BigQuery m) => BoolExpResolver 'BigQuery m v -> BoolExpRHSParser 'BigQuery m v -> FieldInfoMap (FieldInfo 'BigQuery) -> FieldInfoMap (FieldInfo 'BigQuery) -> ComputedFieldInfo 'BigQuery -> Value -> m (AnnComputedFieldBoolExp 'BigQuery v) Source #
prepareCatalog :: forall (m :: Type -> Type). (MonadIO m, MonadBaseControl IO m) => SourceConfig 'BigQuery -> ExceptT QErr m (RecreateEventTriggers, SourceCatalogMigrationState) Source #
listAllTables :: (CacheRM m, MonadBaseControl IO m, MetadataM m, MonadError QErr m, MonadIO m, MonadReader r m, Has (Logger Hasura) r, ProvidesNetwork m) => SourceName -> m [TableName 'BigQuery] Source #
listAllTrackables :: (CacheRM m, MonadBaseControl IO m, MetadataM m, MonadError QErr m, MonadIO m, MonadReader r m, Has (Logger Hasura) r, ProvidesNetwork m) => SourceName -> m (TrackableInfo 'BigQuery) Source #
getTableInfo :: (CacheRM m, MetadataM m, MonadError QErr m, MonadBaseControl IO m, MonadIO m) => SourceName -> TableName 'BigQuery -> m (Maybe (SourceTableInfo 'BigQuery)) Source #
validateNativeQuery :: (MonadIO m, MonadError QErr m) => Environment -> SourceConnConfiguration 'BigQuery -> LogicalModelInfo 'BigQuery -> NativeQueryMetadata 'BigQuery -> m (InterpolatedQuery ArgumentName) Source #
validateStoredProcedure :: (MonadIO m, MonadError QErr m) => Environment -> SourceConnConfiguration 'BigQuery -> LogicalModelInfo 'BigQuery -> StoredProcedureMetadata 'BigQuery -> m () Source #
getStoredProcedureGraphqlName :: MonadError QErr m => FunctionName 'BigQuery -> StoredProcedureConfig -> m Name Source #
supportsBeingRemoteRelationshipTarget :: SourceConfig 'BigQuery -> Bool Source #