error.go
 1package sqlite
 2
 3import (
 4	"errors"
 5	"fmt"
 6)
 7
 8var (
 9	// ErrDuplicateKey is returned when a unique constraint is violated.
10	ErrDuplicateKey = errors.New("record already exists")
11
12	// ErrNoRecord is returned when a record is not found.
13	ErrNoRecord = errors.New("record not found")
14
15	// ErrRepoNotExist is returned when a repository does not exist.
16	ErrRepoNotExist = fmt.Errorf("repository does not exist")
17)