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

sqlite

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package sqlite provides the kit's default, CGO-free storage backend over modernc.org/sqlite (R7). Concurrency model: a single-writer pool (SetMaxOpenConns(1)) + WAL + busy_timeout, with every transaction opened BEGIN IMMEDIATE (_txlock=immediate) so writers take the write lock up front instead of failing mid-transaction. Writes are globally serialized — acceptable for certification and small deployments; per-account write concurrency is a documented Postgres property (storage/postgres).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(dsn string) (storage.Store, error)

Open opens (creating if needed) the SQLite database at dsn — a plain file path or a file: URI — applies the embedded migrations, and returns the storage.Store aggregate.

Types

This section is empty.

Jump to

Keyboard shortcuts

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