sqlite

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package sqlite provides the official single-owner SQLite implementation of workspace.Store. The transport-neutral workspace package does not import this adapter or the SQLite driver.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInUse means another live resource owns the same SQLite journal file.
	ErrInUse = errors.New("workspace/sqlite: apply journal is already in use")
	// ErrUnsupportedSchema means the file is neither empty nor the exact schema
	// supported by this clean-break adapter.
	ErrUnsupportedSchema = errors.New("workspace/sqlite: unsupported apply journal schema; recreate database")
)

Functions

func Open

Open initializes a clean-break schema, takes exclusive process ownership, then atomically terminalizes every pending row recovered from a previous owner. It never invokes a workspace.CASApplier during recovery. The returned owned Resource must be released after every consumer has stopped using it.

Types

type Config

type Config struct {
	Path          string
	CommitTimeout time.Duration
}

Config selects one dedicated caller-side journal. Path must not be shared with HumanAgent or HumanLLM stores. CommitTimeout bounds detached terminal commits after an external side effect; zero uses 10s.

Jump to

Keyboard shortcuts

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