store

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package store opens the CLI's SQLite databases (results cache, jobs, stream store) with pure-Go SQLite, WAL journaling, and versioned migrations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(path string, migrations []string) (*sql.DB, error)

Open opens (creating if needed) the database at path, enables WAL and a 5 s busy timeout, and applies migrations[user_version:] in order. Pending migrations and the user_version bump run in one transaction, so a failed migration leaves the database as it was. Migrations are append-only.

Types

This section is empty.

Jump to

Keyboard shortcuts

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