sqlite

package module
v0.0.0-...-2118bcb Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: Unlicense Imports: 9 Imported by: 0

README

Go SQLite3 Sys

This is a SQLite3 database driver for Go. I made it because I wanted to learn how database drivers work in Go and also to learn the language better.

Works by just binding to the sqlite3 C library.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGeneric       = errors.New("SQlite error")
	ErrInternal      = errors.New("Internal sqlite3 library error. This is a bug")
	ErrPermission    = errors.New("Permission denied")
	ErrAbort         = errors.New("Callback aborted")
	ErrBusy          = errors.New("Database file is already locked")
	ErrTableLocked   = errors.New("Table is already locked")
	ErrNoMem         = errors.New("Out of memory")
	ErrReadOnly      = errors.New("Database is read only")
	ErrInterrupt     = errors.New("Operation was interrupted")
	ErrIO            = errors.New("IO error")
	ErrCorrupt       = errors.New("Database is corrupted")
	ErrNotFound      = errors.New("Unknown opcode")
	ErrFull          = errors.New("Databse is full")
	ErrCantOpen      = errors.New("Unable to open database")
	ErrProtocol      = errors.New("Lock protocol error")
	ErrEmpty         = errors.New("Empty. This is a bug")
	ErrSchema        = errors.New("Invalid schema")
	ErrTooBig        = errors.New("BLOB is too big")
	ErrConstraint    = errors.New("Constraint violation")
	ErrMismatch      = errors.New("Mismatched data types")
	ErrMisuse        = errors.New("SQLite3 misuse. This is a bug")
	ErrOsUnsupported = errors.New("Feature not supported by OS")
	ErrAuth          = errors.New("Authorization failed")
	ErrFormat        = errors.New("Format error")
	ErrRange         = errors.New("Out of range")
	ErrNotDb         = errors.New("Not a valid database")
)

what am I even doing

View Source
var DriverName string = "sqlite-sys" // same reason but hey you can import the name

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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