mirror of
https://github.com/chaisql/chai.git
synced 2025-10-04 23:32:52 +08:00
db: introduce row type
This commit is contained in:
@@ -7,12 +7,12 @@ import (
|
||||
)
|
||||
|
||||
// IsNotFoundError determines if the given error is a NotFoundError.
|
||||
// NotFoundError is returned when the requested table, index, document or sequence
|
||||
// NotFoundError is returned when the requested table, index, object or sequence
|
||||
// doesn't exist.
|
||||
var IsNotFoundError = errs.IsNotFoundError
|
||||
|
||||
// IsAlreadyExistsError determines if the error is returned as a result of
|
||||
// a conflict when attempting to create a table, an index, a document or a sequence
|
||||
// a conflict when attempting to create a table, an index, a object or a sequence
|
||||
// with a name that is already used by another resource.
|
||||
func IsAlreadyExistsError(err error) bool {
|
||||
if errs.IsAlreadyExistsError(err) {
|
||||
|
Reference in New Issue
Block a user