package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
ConcurrentSchemaChangeDescID returns the ID of the descriptor which is undergoing a concurrent schema change, according to err, if applicable.
ConcurrentSchemaChangeError returns a concurrent schema change error for the given table.
HasNotImplemented returns true if the error indicates that the builder does not support the provided statement.
HasSchemaChangerUserError returns true if the error is meant to be surfaced.
NotImplementedError returns an error for which HasNotImplemented would return true.
NotImplementedErrorf returns an error for which HasNotImplemented would return true.
SchemaChangerUserError wraps an error as user consumable, which will surface it from the declarative schema changer without any wrapping.
StartEventf logs the start of a schema change event, and returns an object with a HandlePanicAndLogError method to handle panics and log errors at the end of the event.
UnwrapSchemaChangerUserError returns the cause of a schemaChangerUserError, or nil if the error is not a schemaChangerUserError.
# Structs
EventLogger is a convenience object used for logging schema changer events.