forked from mrz1836/go-datastore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherrors.go
29 lines (20 loc) · 1.21 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package datastore
import (
"errors"
)
// ErrUnsupportedEngine is used when the engine given is not a known datastore engine
var ErrUnsupportedEngine = errors.New("unsupported datastore engine")
// ErrNoResults error when no results are found
var ErrNoResults = errors.New("no results found")
// ErrDuplicateKey error when a record is inserted and conflicts with an existing record
var ErrDuplicateKey = errors.New("duplicate key")
// ErrUnknownCollection is thrown when the collection can not be found using the model/name
var ErrUnknownCollection = errors.New("could not determine collection name from model")
// ErrUnsupportedDriver is when the given SQL driver is not determined to be known or supported
var ErrUnsupportedDriver = errors.New("sql driver unsupported")
// ErrNoSourceFound is when no source database is found in all given configurations
var ErrNoSourceFound = errors.New("no source database found in all given configurations")
// ErrUnknownSQL is an error when using a SQL engine that is not known for indexes and migrations
var ErrUnknownSQL = errors.New("unknown sql implementation")
// ErrNotImplemented is an error when a method is not implemented
var ErrNotImplemented = errors.New("not implemented")