package
20.2.19+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
IsCCLRequiredError returns whether the error is a CCLRequired error.
IsDiskFullError checks whether this is a disk full error.
IsOutOfMemoryError checks whether this is an out of memory error.
IsRelationAlreadyExistsError checks whether this is an error for a preexisting relation.
IsUndefinedColumnError checks whether this is an undefined column error.
IsUndefinedRelationError checks whether this is an undefined relation error.
MakeObjectAlreadyExistsError creates an error for a namespace collision with an arbitrary descriptor type.
NewAggInAggError creates an error for the case when an aggregate function is contained within another aggregate function.
NewCCLRequiredError creates an error for when a CCL feature is used in an OSS binary.
NewColumnAlreadyExistsError creates an error for a preexisting column.
NewDatabaseAlreadyExistsError creates an error for a preexisting database.
NewDependentObjectErrorf creates a dependent object error.
NewInvalidSchemaDefinitionError creates an error for an invalid schema definition such as a schema definition that doesn't parse.
NewInvalidWildcardError creates an error that represents the result of expanding a table wildcard over an invalid database or schema prefix.
NewNonNullViolationError creates an error for a violation of a non-NULL constraint.
NewRangeUnavailableError creates an unavailable range error.
NewRelationAlreadyExistsError creates an error for a preexisting relation.
NewSyntaxErrorf creates a syntax error.
NewTransactionAbortedError creates an error for trying to run a command in the context of transaction that's in the aborted state.
NewTransactionCommittedError creates an error that signals that the SQL txn is in the COMMIT_WAIT state and that only a COMMIT statement will be accepted.
NewTypeAlreadyExistsError creates an error for a preexisting type.
NewUndefinedDatabaseError creates an error that represents a missing database.
NewUndefinedObjectError returns the correct undefined object error based on the kind of object that was requested.
NewUndefinedRelationError creates an error that represents a missing database table or view.
NewUndefinedSchemaError creates an error for an undefined schema.
NewUndefinedTypeError creates an error that represents a missing type.
NewUnsupportedSchemaUsageError creates an error for an invalid schema use, e.g.
NewWindowInAggError creates an error for the case when a window function is nested within an aggregate function.
NewWrongObjectTypeError creates a wrong object type error.
WrapErrorWhileConstructingObjectAlreadyExistsErr is used to wrap an error when an error occurs while trying to get the colliding object for an ObjectAlreadyExistsErr.
# Variables
QueryTimeoutError is an error representing a query timeout.