Documentation ¶
Overview ¶
Package sql3 contains the latest version of FeatureBase SQL support.
Index ¶
- Constants
- 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 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 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 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 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 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 CompilePlanner
- type NopCompilePlanner
Constants ¶
View Source
const ( ErrInternal errors.Code = "ErrInternal" ErrUnsupported errors.Code = "ErrUnsupported" ErrCacheKeyNotFound errors.Code = "ErrCacheKeyNotFound" ErrDuplicateColumn errors.Code = "ErrDuplicateColumn" ErrUnknownType errors.Code = "ErrUnknownType" ErrUnknownIdentifier errors.Code = "ErrUnknownIdentifier" ErrTypeIncompatibleWithBitwiseOperator errors.Code = "ErrTypeIncompatibleWithBitwiseOperator" ErrTypeIncompatibleWithLogicalOperator errors.Code = "ErrTypeIncompatibleWithLogicalOperator" ErrTypeIncompatibleWithEqualityOperator errors.Code = "ErrTypeIncompatibleWithEqualityOperator" ErrTypeIncompatibleWithComparisonOperator errors.Code = "ErrTypeIncompatibleWithComparisonOperator" ErrTypeIncompatibleWithArithmeticOperator errors.Code = "ErrTypeIncompatibleWithArithmeticOperator" ErrTypeIncompatibleWithConcatOperator errors.Code = "ErrTypeIncompatibleWithConcatOperator" ErrTypeIncompatibleWithLikeOperator errors.Code = "ErrTypeIncompatibleWithLikeOperator" ErrTypeIncompatibleWithBetweenOperator errors.Code = "ErrTypeIncompatibleWithBetweenOperator" ErrTypeCannotBeUsedAsRangeSubscript errors.Code = "ErrTypeCannotBeUsedAsRangeSubscript" ErrTypesAreNotEquatable errors.Code = "ErrTypesAreNotEquatable" ErrTypeMismatch errors.Code = "ErrTypeMismatch" ErrIncompatibleTypesForRangeSubscripts errors.Code = "ErrIncompatibleTypesForRangeSubscripts" ErrExpressionListExpected errors.Code = "ErrExpressionListExpected" ErrBooleanExpressionExpected errors.Code = "ErrBooleanExpressionExpected" ErrIntExpressionExpected errors.Code = "ErrIntExpressionExpected" ErrIntOrDecimalExpressionExpected errors.Code = "ErrIntOrDecimalExpressionExpected" ErrIntOrDecimalOrTimestampExpressionExpected errors.Code = "ErrIntOrDecimalOrTimestampExpressionExpected" ErrIntOrDecimalOrTimestampOrStringExpressionExpected errors.Code = "ErrIntOrDecimalOrTimestampOrStringExpressionExpected" ErrStringExpressionExpected errors.Code = "ErrStringExpressionExpected" ErrSetExpressionExpected errors.Code = "ErrSetExpressionExpected" ErrTimeQuantumExpressionExpected errors.Code = "ErrTimeQuantumExpressionExpected" ErrSingleRowExpected errors.Code = "ErrSingleRowExpected" // decimal ErrDecimalScaleExpected errors.Code = "ErrDecimalScaleExpected" ErrInvalidCast errors.Code = "ErrInvalidCast" ErrInvalidTypeCoercion errors.Code = "ErrInvalidTypeCoercion" ErrLiteralExpected errors.Code = "ErrLiteralExpected" ErrIntegerLiteral errors.Code = "ErrIntegerLiteral" ErrStringLiteral errors.Code = "ErrStringLiteral" ErrBoolLiteral errors.Code = "ErrBoolLiteral" ErrLiteralNullNotAllowed errors.Code = "ErrLiteralNullNotAllowed" ErrLiteralEmptySetNotAllowed errors.Code = "ErrLiteralEmptySetNotAllowed" ErrLiteralEmptyTupleNotAllowed errors.Code = "ErrLiteralEmptyTupleNotAllowed" ErrSetLiteralMustContainIntOrString errors.Code = "ErrSetLiteralMustContainIntOrString" ErrInvalidColumnInFilterExpression errors.Code = "ErrInvalidColumnInFilterExpression" ErrInvalidTypeInFilterExpression errors.Code = "ErrInvalidTypeInFilterExpression" ErrTypeAssignmentIncompatible errors.Code = "ErrTypeAssignmentIncompatible" ErrTypeAssignmentToTimeQuantumIncompatible errors.Code = "ErrTypeAssignmentToTimeQuantumIncompatible" ErrInvalidUngroupedColumnReference errors.Code = "ErrInvalidUngroupedColumnReference" ErrInvalidUngroupedColumnReferenceInHaving errors.Code = "ErrInvalidUngroupedColumnReferenceInHaving" ErrInvalidTimeUnit errors.Code = "ErrInvalidTimeUnit" ErrInvalidTimeEpoch errors.Code = "ErrInvalidTimeEpoch" ErrInvalidTimeQuantum errors.Code = "ErrInvalidTimeQuantum" ErrInvalidDuration errors.Code = "ErrInvalidDuration" ErrInsertExprTargetCountMismatch errors.Code = "ErrInsertExprTargetCountMismatch" ErrInsertMustHaveIDColumn errors.Code = "ErrInsertMustHaveIDColumn" ErrInsertMustAtLeastOneNonIDColumn errors.Code = "ErrInsertMustAtLeastOneNonIDColumn" ErrDatabaseNotFound errors.Code = "ErrDatabaseNotFound" ErrDatabaseExists errors.Code = "ErrDatabaseExists" ErrInvalidDatabaseOption errors.Code = "ErrInvalidDatabaseOption" ErrInvalidUnitsValue errors.Code = "ErrInvalidUnitsValue" ErrTableMustHaveIDColumn errors.Code = "ErrTableMustHaveIDColumn" ErrTableIDColumnType errors.Code = "ErrTableIDColumnType" ErrTableIDColumnConstraints errors.Code = "ErrTableIDColumnConstraints" ErrTableIDColumnAlter errors.Code = "ErrTableIDColumnAlter" ErrTableNotFound errors.Code = "ErrTableNotFound" ErrTableExists errors.Code = "ErrTableExists" ErrColumnNotFound errors.Code = "ErrColumnNotFound" ErrTableColumnNotFound errors.Code = "ErrTableColumnNotFound" ErrInvalidKeyPartitionsValue errors.Code = "ErrInvalidKeyPartitionsValue" ErrTableOrViewNotFound errors.Code = "ErrTableOrViewNotFound" ErrViewExists errors.Code = "ErrViewExists" ErrViewNotFound errors.Code = "ErrViewNotFound" ErrBadColumnConstraint errors.Code = "ErrBadColumnConstraint" ErrConflictingColumnConstraint errors.Code = "ErrConflictingColumnConstraint" // expected errors ErrExpectedColumnReference errors.Code = "ErrExpectedColumnReference" ErrExpectedSortExpressionReference errors.Code = "ErrExpectedSortExpressionReference" ErrExpectedSortableExpression errors.Code = "ErrExpectedSortableExpression" // call errors ErrCallUnknownFunction errors.Code = "ErrCallUnknownFunction" ErrCallParameterCountMismatch errors.Code = "ErrCallParameterCountMismatch" ErrIdColumnNotValidForAggregateFunction errors.Code = "ErrIdColumnNotValidForAggregateFunction" ErrParameterTypeMistmatch errors.Code = "ErrParameterTypeMistmatch" ErrCallParameterValueInvalid errors.Code = "ErrCallParameterValueInvalid" ErrInsertValueOutOfRange errors.Code = "ErrInsertValueOutOfRange" ErrUnexpectedTimeQuantumTupleLength errors.Code = "ErrUnexpectedTimeQuantumTupleLength" ErrReadingDatasource errors.Code = "ErrReadingDatasource" ErrMappingFromDatasource errors.Code = "ErrMappingFromDatasource" ErrFormatSpecifierExpected errors.Code = "ErrFormatSpecifierExpected" ErrInvalidFormatSpecifier errors.Code = "ErrInvalidFormatSpecifier" ErrInputSpecifierExpected errors.Code = "ErrInputSpecifierExpected" ErrInvalidInputSpecifier errors.Code = "ErrInvalidInputSpecifier" ErrInvalidBatchSize errors.Code = "ErrInvalidBatchSize" ErrTypeConversionOnMap errors.Code = "ErrTypeConversionOnMap" ErrParsingJSON errors.Code = "ErrParsingJSON" ErrEvaluatingJSONPathExpr errors.Code = "ErrEvaluatingJSONPathExpr" // optimizer errors ErrAggregateNotAllowedInGroupBy errors.Code = "ErrIdPercentileNotAllowedInGroupBy" // function evaluation ErrValueOutOfRange errors.Code = "ErrValueOutOfRange" ErrStringLengthMismatch errors.Code = "ErrStringLengthMismatch" ErrUnexpectedTypeConversion errors.Code = "ErrUnexpectedTypeConversion" // time quantum function eval ErrQRangeFromAndToTimeCannotBeBothNull errors.Code = "ErrQRangeFromAndToTimeCannotBeBothNull" ErrQRangeInvalidUse errors.Code = "ErrQRangeInvalidUse" ErrInvalidDatetimePart errors.Code = "ErrInvalidDatetimePart" ErrOutputValueOutOfRange errors.Code = "ErrOutputValueOutOfRange" ErrDivideByZero errors.Code = "ErrDivideByZero" )
Variables ¶
This section is empty.
Functions ¶
func NewErrBoolLiteral ¶
func NewErrCacheKeyNotFound ¶
func NewErrColumnNotFound ¶
func NewErrDatabaseExists ¶ added in v3.32.0
func NewErrDatabaseNotFound ¶ added in v3.32.0
func NewErrDivideByZero ¶ added in v3.34.0
func NewErrIntOrDecimalOrTimestampOrStringExpressionExpected ¶ added in v3.32.0
func NewErrIntegerLiteral ¶
func NewErrInternal ¶
func NewErrInternalf ¶
func NewErrInvalidBatchSize ¶
func NewErrInvalidCast ¶
func NewErrInvalidDatabaseOption ¶ added in v3.32.0
func NewErrInvalidDatetimePart ¶ added in v3.34.0
func NewErrInvalidDuration ¶
func NewErrInvalidTimeEpoch ¶
func NewErrInvalidTimeUnit ¶
func NewErrInvalidUngroupedColumnReferenceInHaving ¶ added in v3.27.0
func NewErrInvalidUnitsValue ¶ added in v3.32.0
func NewErrLiteralExpected ¶
func NewErrLiteralNullNotAllowed ¶ added in v3.30.0
func NewErrOutputValueOutOfRange ¶ added in v3.34.0
func NewErrParsingJSON ¶
func NewErrQRangeFromAndToTimeCannotBeBothNull ¶ added in v3.33.0
func NewErrQRangeInvalidUse ¶ added in v3.33.0
func NewErrReadingDatasource ¶
func NewErrSingleRowExpected ¶
func NewErrStringLengthMismatch ¶ added in v3.27.0
func NewErrStringLiteral ¶
func NewErrTableExists ¶ added in v3.27.0
func NewErrTableIDColumnType ¶
func NewErrTableNotFound ¶
func NewErrTableOrViewNotFound ¶ added in v3.29.0
func NewErrTimeQuantumExpressionExpected ¶ added in v3.33.0
func NewErrTypeAssignmentToTimeQuantumIncompatible ¶ added in v3.33.0
func NewErrTypeMismatch ¶
func NewErrUnexpectedTimeQuantumTupleLength ¶ added in v3.33.0
func NewErrUnexpectedTypeConversion ¶ added in v3.30.0
func NewErrUnsupported ¶ added in v3.29.0
func NewErrValueOutOfRange ¶ added in v3.27.0
function evaluation
func NewErrViewExists ¶ added in v3.29.0
func NewErrViewNotFound ¶ added in v3.29.0
Types ¶
type CompilePlanner ¶
type NopCompilePlanner ¶
type NopCompilePlanner struct{}
NopCompilePlanner is a no-op implementation of the CompilePlanner interface.
func NewNopCompilePlanner ¶
func NewNopCompilePlanner() *NopCompilePlanner
func (*NopCompilePlanner) CompilePlan ¶
func (p *NopCompilePlanner) CompilePlan(ctx context.Context, stmt parser.Statement) (types.PlanOperator, error)
func (*NopCompilePlanner) RehydratePlanOp ¶ added in v3.29.0
func (p *NopCompilePlanner) RehydratePlanOp(ctx context.Context, reader io.Reader) (types.PlanOperator, error)
Click to show internal directories.
Click to hide internal directories.