Documentation
¶
Index ¶
- func Is(err error, target Code) bool
- func NewErrAggregateNotAllowedInGroupBy(line, col int, aggName string) error
- func NewErrBadColumnConstraint(line, col int, constraint, columnType string) error
- func NewErrBoolLiteral(line, col int) error
- func NewErrBooleanExpressionExpected(line, col int) error
- func NewErrCacheKeyNotFound(key uint64) error
- func NewErrCallParameterCountMismatch(line, col int, functionName string, formalCount, actualCount int) error
- func NewErrCallParameterValueInvalid(line, col int, badParameterValue string, parameterName string) error
- func NewErrCallUnknownFunction(line, col int, functionName string) error
- func NewErrColumnNotFound(line, col int, columnName string) error
- func NewErrConflictingColumnConstraint(line, col int, token1, token2 parser.Token) error
- func NewErrDatabaseExists(line, col int, databaseName string) error
- func NewErrDatabaseNotFound(line, col int, databaseName string) error
- func NewErrDecimalScaleExpected(line, col int) error
- func NewErrDivideByZero(line, col int) error
- func NewErrDuplicateColumn(line int, col int, column string) error
- func NewErrErrTopLimitCannotCoexist(line int, col int) error
- func NewErrEvaluatingJSONPathExpr(line, col int, exprText string, jsonString string, errorText string) error
- func NewErrExpectedColumnReference(line, col int) error
- func NewErrExpectedSortExpressionReference(line, col int) error
- func NewErrExpectedSortableExpression(line, col int, typeName string) error
- func NewErrExpressionListExpected(line, col int) error
- func NewErrFormatSpecifierExpected(line, col int) error
- func NewErrIdColumnNotValidForAggregateFunction(line, col int, functionName string) error
- func NewErrIncompatibleTypesForRangeSubscripts(line, col int, type1 string, type2 string) error
- func NewErrInputSpecifierExpected(line, col int) error
- func NewErrInsertExprTargetCountMismatch(line int, col int) error
- func NewErrInsertMustAtLeastOneNonIDColumn(line int, col int) error
- func NewErrInsertMustHaveIDColumn(line int, col int) error
- func NewErrInsertValueOutOfRange(line, col int, columnName string, rowNumber int, badValue interface{}) error
- func NewErrIntExpressionExpected(line, col int) error
- func NewErrIntOrDecimalExpressionExpected(line, col int) error
- func NewErrIntOrDecimalOrTimestampExpressionExpected(line, col int) error
- func NewErrIntOrDecimalOrTimestampOrStringExpressionExpected(line, col int) error
- func NewErrIntegerLiteral(line, col int) error
- func NewErrInternal(msg string) error
- func NewErrInternalf(format string, a ...interface{}) error
- func NewErrInvalidBatchSize(line, col int, batchSize int) error
- func NewErrInvalidCast(line, col int, from, to string) error
- func NewErrInvalidColumnInFilterExpression(line, col int, column string, op string) error
- func NewErrInvalidDatabaseOption(line, col int, option string) error
- func NewErrInvalidDatetimePart(line, col int, datetimepart int) error
- func NewErrInvalidDuration(line, col int, duration string) error
- func NewErrInvalidFormatSpecifier(line, col int, specifier string) error
- func NewErrInvalidInputSpecifier(line, col int, specifier string) error
- func NewErrInvalidKeyPartitionsValue(line, col int, keypartitions int64) error
- func NewErrInvalidQueryHintParameterCount(line, col int, hintName string, desiredList string, desiredCount int, ...) error
- func NewErrInvalidTimeEpoch(line, col int, epoch string) error
- func NewErrInvalidTimeQuantum(line, col int, quantum string) error
- func NewErrInvalidTimeUnit(line, col int, unit string) error
- func NewErrInvalidTypeCoercion(line, col int, from, to string) error
- func NewErrInvalidTypeInFilterExpression(line, col int, typeName string, op string) error
- func NewErrInvalidUngroupedColumnReference(line, col int, column string) error
- func NewErrInvalidUngroupedColumnReferenceInHaving(line, col int, column string) error
- func NewErrInvalidUnitsValue(line, col int, units int64) error
- func NewErrLiteralEmptySetNotAllowed(line, col int) error
- func NewErrLiteralEmptyTupleNotAllowed(line, col int) error
- func NewErrLiteralExpected(line, col int) error
- func NewErrLiteralNullNotAllowed(line, col int) error
- func NewErrMappingFromDatasource(line, col int, dataSource string, errorText string) error
- func NewErrModelExists(line, col int, viewName string) error
- func NewErrModelNotFound(line, col int, viewName string) error
- func NewErrOutputValueOutOfRange(line, col int) error
- func NewErrParameterTypeMistmatch(line, col int, type1, type2 string) error
- func NewErrParsingJSON(line, col int, jsonString string, errorText string) error
- func NewErrQRangeFromAndToTimeCannotBeBothNull(line, col int) error
- func NewErrQRangeInvalidUse(line, col int) error
- func NewErrReadingDatasource(line, col int, dataSource string, errorText string) error
- func NewErrRemoteUnauthorized(line, col int, remoteUrl string) error
- func NewErrSetExpressionExpected(line, col int) error
- func NewErrSetLiteralMustContainIntOrString(line, col int) error
- func NewErrSingleRowExpected(line, col int) error
- func NewErrStringExpressionExpected(line, col int) error
- func NewErrStringLengthMismatch(line, col, len int, val interface{}) error
- func NewErrStringLiteral(line, col int) error
- func NewErrTableColumnNotFound(line, col int, tableName string, columnName string) error
- func NewErrTableExists(line, col int, tableName string) error
- func NewErrTableIDColumnAlter(line, col int) error
- func NewErrTableIDColumnConstraints(line, col int) error
- func NewErrTableIDColumnType(line, col int) error
- func NewErrTableMustHaveIDColumn(line, col int) error
- func NewErrTableNotFound(line, col int, tableName string) error
- func NewErrTableOrViewNotFound(line, col int, tableName string) error
- func NewErrTimeQuantumExpressionExpected(line, col int) error
- func NewErrTypeAssignmentIncompatible(line, col int, type1, type2 string) error
- func NewErrTypeAssignmentToTimeQuantumIncompatible(line, col int, type1 string) error
- func NewErrTypeCannotBeUsedAsRangeSubscript(line, col int, type1 string) error
- func NewErrTypeConversionOnMap(line, col int, value interface{}, typeName string) error
- func NewErrTypeIncompatibleWithArithmeticOperator(line, col int, operator, type1 string) error
- func NewErrTypeIncompatibleWithBetweenOperator(line, col int, operator, type1 string) error
- func NewErrTypeIncompatibleWithBitwiseOperator(line, col int, operator, type1 string) error
- func NewErrTypeIncompatibleWithComparisonOperator(line, col int, operator, type1 string) error
- func NewErrTypeIncompatibleWithConcatOperator(line, col int, operator, type1 string) error
- func NewErrTypeIncompatibleWithEqualityOperator(line, col int, operator, type1 string) error
- func NewErrTypeIncompatibleWithLikeOperator(line, col int, operator, type1 string) error
- func NewErrTypeIncompatibleWithLogicalOperator(line, col int, operator, type1 string) error
- func NewErrTypeMismatch(line, col int, type1, type2 string) error
- func NewErrTypesAreNotEquatable(line, col int, type1, type2 string) error
- func NewErrUnexpectedTimeQuantumTupleLength(line, col int, columnName string, rowNumber int, badValue []interface{}, ...) error
- func NewErrUnexpectedTypeConversion(line, col int, val interface{}) error
- func NewErrUnknownIdentifier(line int, col int, ident string) error
- func NewErrUnknownQueryHint(line, col int, hintName string) error
- func NewErrUnknownShowOption(line, col int, optionName string) error
- func NewErrUnknownType(line int, col int, typ string) error
- func NewErrUnsupported(line, col int, is bool, thing string) error
- func NewErrValueOutOfRange(line, col int, val interface{}) error
- func NewErrViewExists(line, col int, viewName string) error
- func NewErrViewNotFound(line, col int, viewName string) error
- type Code
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Is ¶
Is is a fork of the Is() method from `pkg/errors` which takes as its target an error Code instead of an error.
func NewErrBoolLiteral ¶
func NewErrCacheKeyNotFound ¶
func NewErrColumnNotFound ¶
func NewErrDatabaseExists ¶
func NewErrDatabaseNotFound ¶
func NewErrDivideByZero ¶
func NewErrIntegerLiteral ¶
func NewErrInternal ¶
func NewErrInternalf ¶
func NewErrInvalidBatchSize ¶
func NewErrInvalidCast ¶
func NewErrInvalidDuration ¶
func NewErrInvalidTimeEpoch ¶
func NewErrInvalidTimeUnit ¶
func NewErrInvalidUnitsValue ¶
func NewErrLiteralExpected ¶
func NewErrModelExists ¶
func NewErrModelNotFound ¶
func NewErrParsingJSON ¶
func NewErrQRangeInvalidUse ¶
func NewErrReadingDatasource ¶
func NewErrSingleRowExpected ¶
func NewErrStringLiteral ¶
func NewErrTableExists ¶
func NewErrTableIDColumnType ¶
func NewErrTableNotFound ¶
func NewErrTypeMismatch ¶
func NewErrUnknownQueryHint ¶
func NewErrUnknownShowOption ¶
func NewErrValueOutOfRange ¶
function evaluation
func NewErrViewExists ¶
func NewErrViewNotFound ¶
Types ¶
type Code ¶
type Code string
const ( ErrInternal Code = "ErrInternal" ErrUnsupported Code = "ErrUnsupported" ErrCacheKeyNotFound Code = "ErrCacheKeyNotFound" // syntax/semantic errors ErrDuplicateColumn Code = "ErrDuplicateColumn" ErrUnknownType Code = "ErrUnknownType" ErrUnknownIdentifier Code = "ErrUnknownIdentifier" ErrTopLimitCannotCoexist Code = "ErrTopLimitCannotCoexist" // type related errors ErrTypeIncompatibleWithBitwiseOperator Code = "ErrTypeIncompatibleWithBitwiseOperator" ErrTypeIncompatibleWithLogicalOperator Code = "ErrTypeIncompatibleWithLogicalOperator" ErrTypeIncompatibleWithEqualityOperator Code = "ErrTypeIncompatibleWithEqualityOperator" ErrTypeIncompatibleWithComparisonOperator Code = "ErrTypeIncompatibleWithComparisonOperator" ErrTypeIncompatibleWithArithmeticOperator Code = "ErrTypeIncompatibleWithArithmeticOperator" ErrTypeIncompatibleWithConcatOperator Code = "ErrTypeIncompatibleWithConcatOperator" ErrTypeIncompatibleWithLikeOperator Code = "ErrTypeIncompatibleWithLikeOperator" ErrTypeIncompatibleWithBetweenOperator Code = "ErrTypeIncompatibleWithBetweenOperator" ErrTypeCannotBeUsedAsRangeSubscript Code = "ErrTypeCannotBeUsedAsRangeSubscript" ErrTypesAreNotEquatable Code = "ErrTypesAreNotEquatable" ErrTypeMismatch Code = "ErrTypeMismatch" ErrIncompatibleTypesForRangeSubscripts Code = "ErrIncompatibleTypesForRangeSubscripts" ErrExpressionListExpected Code = "ErrExpressionListExpected" ErrBooleanExpressionExpected Code = "ErrBooleanExpressionExpected" ErrIntExpressionExpected Code = "ErrIntExpressionExpected" ErrIntOrDecimalExpressionExpected Code = "ErrIntOrDecimalExpressionExpected" ErrIntOrDecimalOrTimestampExpressionExpected Code = "ErrIntOrDecimalOrTimestampExpressionExpected" ErrIntOrDecimalOrTimestampOrStringExpressionExpected Code = "ErrIntOrDecimalOrTimestampOrStringExpressionExpected" ErrStringExpressionExpected Code = "ErrStringExpressionExpected" ErrSetExpressionExpected Code = "ErrSetExpressionExpected" ErrTimeQuantumExpressionExpected Code = "ErrTimeQuantumExpressionExpected" ErrSingleRowExpected Code = "ErrSingleRowExpected" // decimal ErrDecimalScaleExpected Code = "ErrDecimalScaleExpected" ErrInvalidCast Code = "ErrInvalidCast" ErrInvalidTypeCoercion Code = "ErrInvalidTypeCoercion" ErrLiteralExpected Code = "ErrLiteralExpected" ErrIntegerLiteral Code = "ErrIntegerLiteral" ErrStringLiteral Code = "ErrStringLiteral" ErrBoolLiteral Code = "ErrBoolLiteral" ErrLiteralNullNotAllowed Code = "ErrLiteralNullNotAllowed" ErrLiteralEmptySetNotAllowed Code = "ErrLiteralEmptySetNotAllowed" ErrLiteralEmptyTupleNotAllowed Code = "ErrLiteralEmptyTupleNotAllowed" ErrSetLiteralMustContainIntOrString Code = "ErrSetLiteralMustContainIntOrString" ErrInvalidColumnInFilterExpression Code = "ErrInvalidColumnInFilterExpression" ErrInvalidTypeInFilterExpression Code = "ErrInvalidTypeInFilterExpression" ErrTypeAssignmentIncompatible Code = "ErrTypeAssignmentIncompatible" ErrTypeAssignmentToTimeQuantumIncompatible Code = "ErrTypeAssignmentToTimeQuantumIncompatible" ErrInvalidUngroupedColumnReference Code = "ErrInvalidUngroupedColumnReference" ErrInvalidUngroupedColumnReferenceInHaving Code = "ErrInvalidUngroupedColumnReferenceInHaving" ErrInvalidTimeUnit Code = "ErrInvalidTimeUnit" ErrInvalidTimeEpoch Code = "ErrInvalidTimeEpoch" ErrInvalidTimeQuantum Code = "ErrInvalidTimeQuantum" ErrInvalidDuration Code = "ErrInvalidDuration" ErrInsertExprTargetCountMismatch Code = "ErrInsertExprTargetCountMismatch" ErrInsertMustHaveIDColumn Code = "ErrInsertMustHaveIDColumn" ErrInsertMustAtLeastOneNonIDColumn Code = "ErrInsertMustAtLeastOneNonIDColumn" ErrDatabaseNotFound Code = "ErrDatabaseNotFound" ErrDatabaseExists Code = "ErrDatabaseExists" ErrInvalidDatabaseOption Code = "ErrInvalidDatabaseOption" ErrInvalidUnitsValue Code = "ErrInvalidUnitsValue" ErrTableMustHaveIDColumn Code = "ErrTableMustHaveIDColumn" ErrTableIDColumnType Code = "ErrTableIDColumnType" ErrTableIDColumnConstraints Code = "ErrTableIDColumnConstraints" ErrTableIDColumnAlter Code = "ErrTableIDColumnAlter" ErrTableNotFound Code = "ErrTableNotFound" ErrTableExists Code = "ErrTableExists" ErrColumnNotFound Code = "ErrColumnNotFound" ErrTableColumnNotFound Code = "ErrTableColumnNotFound" ErrInvalidKeyPartitionsValue Code = "ErrInvalidKeyPartitionsValue" ErrTableOrViewNotFound Code = "ErrTableOrViewNotFound" ErrViewExists Code = "ErrViewExists" ErrViewNotFound Code = "ErrViewNotFound" ErrModelExists Code = "ErrModelExists" ErrModelNotFound Code = "ErrModelNotFound" ErrBadColumnConstraint Code = "ErrBadColumnConstraint" ErrConflictingColumnConstraint Code = "ErrConflictingColumnConstraint" // expected errors ErrExpectedColumnReference Code = "ErrExpectedColumnReference" ErrExpectedSortExpressionReference Code = "ErrExpectedSortExpressionReference" ErrExpectedSortableExpression Code = "ErrExpectedSortableExpression" // call errors ErrCallUnknownFunction Code = "ErrCallUnknownFunction" ErrCallParameterCountMismatch Code = "ErrCallParameterCountMismatch" ErrIdColumnNotValidForAggregateFunction Code = "ErrIdColumnNotValidForAggregateFunction" ErrParameterTypeMistmatch Code = "ErrParameterTypeMistmatch" ErrCallParameterValueInvalid Code = "ErrCallParameterValueInvalid" ErrInsertValueOutOfRange Code = "ErrInsertValueOutOfRange" ErrUnexpectedTimeQuantumTupleLength Code = "ErrUnexpectedTimeQuantumTupleLength" ErrReadingDatasource Code = "ErrReadingDatasource" ErrMappingFromDatasource Code = "ErrMappingFromDatasource" ErrFormatSpecifierExpected Code = "ErrFormatSpecifierExpected" ErrInvalidFormatSpecifier Code = "ErrInvalidFormatSpecifier" ErrInputSpecifierExpected Code = "ErrInputSpecifierExpected" ErrInvalidInputSpecifier Code = "ErrInvalidInputSpecifier" ErrInvalidBatchSize Code = "ErrInvalidBatchSize" ErrTypeConversionOnMap Code = "ErrTypeConversionOnMap" ErrParsingJSON Code = "ErrParsingJSON" ErrEvaluatingJSONPathExpr Code = "ErrEvaluatingJSONPathExpr" // optimizer errors ErrAggregateNotAllowedInGroupBy Code = "ErrIdPercentileNotAllowedInGroupBy" // function evaluation ErrValueOutOfRange Code = "ErrValueOutOfRange" ErrStringLengthMismatch Code = "ErrStringLengthMismatch" ErrUnexpectedTypeConversion Code = "ErrUnexpectedTypeConversion" // time quantum function eval ErrQRangeFromAndToTimeCannotBeBothNull Code = "ErrQRangeFromAndToTimeCannotBeBothNull" ErrQRangeInvalidUse Code = "ErrQRangeInvalidUse" ErrInvalidDatetimePart Code = "ErrInvalidDatetimePart" ErrOutputValueOutOfRange Code = "ErrOutputValueOutOfRange" ErrDivideByZero Code = "ErrDivideByZero" ErrRemoteUnauthorized Code = "ErrRemoteUnauthorized" // query hints ErrUnknownQueryHint Code = "ErrInvalidQueryHint" ErrInvalidQueryHintParameterCount Code = "ErrInvalidQueryHintParameterCount" // show options ErrUnknownShowOption Code = "ErrUnknownShowOption" )
const ( ErrOrganizationIDDoesNotExist Code = "OrganizationIDDoesNotExist" ErrDatabaseIDExists Code = "DatabaseIDExists" ErrDatabaseIDDoesNotExist Code = "DatabaseIDDoesNotExist" ErrDatabaseNameDoesNotExist Code = "DatabaseNameDoesNotExist" ErrDatabaseNameExists Code = "DatabaseNameExists" ErrTableIDExists Code = "TableIDExists" ErrTableKeyExists Code = "TableKeyExists" ErrTableNameExists Code = "TableNameExists" ErrTableIDDoesNotExist Code = "TableIDDoesNotExist" ErrTableKeyDoesNotExist Code = "TableKeyDoesNotExist" ErrTableNameDoesNotExist Code = "TableNameDoesNotExist" ErrFieldExists Code = "FieldExists" ErrFieldDoesNotExist Code = "FieldDoesNotExist" ErrInvalidTransaction Code = "InvalidTransaction" ErrUnimplemented Code = "Unimplemented" )
Click to show internal directories.
Click to hide internal directories.