forked from GoCodeAlone/modular
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
16 lines (12 loc) · 716 Bytes
/
errors.go
File metadata and controls
16 lines (12 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package database
import "errors"
// Static error definitions to avoid dynamic error creation (err113 linter)
var (
// ErrTransactionNil is returned when a nil transaction is passed to transaction operations
ErrTransactionNil = errors.New("transaction cannot be nil")
// ErrInvalidTableName is returned when an invalid table name is used
ErrInvalidTableName = errors.New("invalid table name: must start with letter/underscore and contain only alphanumeric/underscore characters")
// ErrMigrationServiceNotInitialized is returned when migration operations are attempted
// without proper migration service initialization
ErrMigrationServiceNotInitialized = errors.New("migration service not initialized")
)