forked from jmoiron/sqlx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
17 lines (15 loc) · 727 Bytes
/
errors.go
File metadata and controls
17 lines (15 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package sqlx
import (
"errors"
)
// Common error messages.
var (
ErrExpectingPointer = errors.New(`argument must be an address`)
ErrExpectingSlicePointer = errors.New(`argument must be a slice address`)
ErrExpectingSliceMapStruct = errors.New(`argument must be a slice address of maps or structs`)
ErrExpectingMapOrStruct = errors.New(`argument must be either a map or a struct`)
ErrExpectingPointerToEitherMapOrStruct = errors.New(`expecting a pointer to either a map or a struct`)
)
var (
errDeprecatedJSONBTag = errors.New(`Tag "jsonb" is deprecated. See "PostgreSQL: jsonb tag" at https://github.com/upper/db/releases/tag/v3.4.0`)
)