-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
21 lines (16 loc) · 1006 Bytes
/
Copy patherrors.go
File metadata and controls
21 lines (16 loc) · 1006 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package gooq
import "errors"
// ErrTooManyRows is returned by FetchOne and FetchSingle when a query yields
// more rows than the caller expected.
var ErrTooManyRows = errors.New("gooq: query returned more than one row")
// ErrReturningUnsupported is recorded when a RETURNING clause is requested for a
// dialect that does not support it. Both supported dialects (PostgreSQL and
// SQLite) render RETURNING natively, so this sentinel exists as a defensive
// guard for any dialect whose supportsReturning reports false.
var ErrReturningUnsupported = errors.New("gooq: RETURNING is not supported by this dialect")
// ErrEmptyInsert is recorded when an INSERT statement has neither columns nor a
// DEFAULT VALUES marker.
var ErrEmptyInsert = errors.New("gooq: INSERT has no columns or values")
// ErrColumnValueMismatch is recorded when an inserted row has a different number
// of values than there are columns.
var ErrColumnValueMismatch = errors.New("gooq: column count does not match value count")