Help us shape the future of Go! Take the 2026 Go Developer Survey

sqlite

package
v0.1.0-rc.41 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package sqlite manages client SQLite connections and migrations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsContention

func IsContention(err error) bool

IsContention reports whether err is a transient SQLite writer conflict.

func Open

func Open(ctx context.Context, path string, migrations fs.FS) (*sql.DB, error)

Open creates, configures, and migrates a SQLite database at path.

func OpenReadOnly

func OpenReadOnly(ctx context.Context, path string) (*sql.DB, error)

OpenReadOnly opens an existing database without migrating it. callers check which of their own schema versions they can read.

Types

This section is empty.

Jump to

Keyboard shortcuts

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