Safe Haskell | None |
---|---|
Language | Haskell2010 |
BigQuery DDL ComputedField
Implementation to build ComputedFieldInfo
for a BigQuery table from metadata
Synopsis
- data ComputedFieldError
- = CFENoArgumentType FunctionArgName
- | CFENotTableValuedFunction
- | CFENoInputArguments
- | CFENoArgumentName
- | CFEInvalidArgumentName FunctionArgName
- | CFEInvalidColumnName TableName ColumnName
- | CFEReturnTableNotTracked TableName
- | CFENeedReturnTableName
- | CFENotRelevantReturnTable TableName
- | CFEReturnTableSchemaError ReturnTableSchemaError
- data ReturnTableSchemaError
- = RTSENoFieldName
- | RTSENoType Text
- | RTSENotValidGraphQLName Text
- showError :: FunctionName -> ComputedFieldError -> Text
- buildComputedFieldInfo :: forall m. MonadError QErr m => HashSet TableName -> TableName -> HashSet ColumnName -> ComputedFieldName -> ComputedFieldDefinition -> RestRoutine -> Comment -> m (ComputedFieldInfo 'BigQuery)
Documentation
data ComputedFieldError Source #
Errors that occur when validating and building computed fields.
data ReturnTableSchemaError Source #
Errors that occur when validating returning table schema fields
RTSENoFieldName | |
RTSENoType Text | |
RTSENotValidGraphQLName Text |
showError :: FunctionName -> ComputedFieldError -> Text Source #
Generate read-able error message
buildComputedFieldInfo :: forall m. MonadError QErr m => HashSet TableName -> TableName -> HashSet ColumnName -> ComputedFieldName -> ComputedFieldDefinition -> RestRoutine -> Comment -> m (ComputedFieldInfo 'BigQuery) Source #
Validate computed field metadata and build field information