sqlite

package
v0.0.0-...-a228a5c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TestErrUniqueConstraintViolation = sqlite3.Error{Code: sqlite3.ErrConstraint, ExtendedCode: sqlite3.ErrConstraintUnique}
	TestErrBusy                      = sqlite3.Error{Code: sqlite3.ErrBusy}
	TestErrLocked                    = sqlite3.Error{Code: sqlite3.ErrLocked}
)

The errors below are used in tests to simulate specific SQLite errors. It's a temporary solution until we rewrite the tests not to depend on the sqlite3 package internals directly.

Functions

func ErrorMessage

func ErrorMessage(err error) string

func IsBusyOrLocked

func IsBusyOrLocked(err error) bool

func IsUniqueConstraintViolation

func IsUniqueConstraintViolation(err error) bool

Types

type Driver

type Driver = sqlite3.SQLiteDriver

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL