-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
20 lines (14 loc) · 794 Bytes
/
errors.go
File metadata and controls
20 lines (14 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package godata
import "errors"
var (
// ErrUnsupportedDriver is returned when the configured driver is not supported.
ErrUnsupportedDriver = errors.New("godata: unsupported database driver (supported: postgres)")
// ErrEmptyConfig is returned when required config fields are missing.
ErrEmptyConfig = errors.New("godata: host, name, and user are required")
// ErrConnectionFailed is returned when the database connection cannot be established.
ErrConnectionFailed = errors.New("godata: failed to connect to database")
// ErrMigrationFailed is returned when a migration fails to apply.
ErrMigrationFailed = errors.New("godata: migration failed")
// ErrNoMigrations is returned when no migration files are found.
ErrNoMigrations = errors.New("godata: no migration files found")
)