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: 15 Imported by: 0

Documentation

Overview

Package sqlite provides the official local SQLite adapter for agent.Store. It owns one dedicated database and its cross-process ownership lock until the returned framework.Resource is released.

Index

Constants

This section is empty.

Variables

View Source
var ErrDatabaseInUse = errors.New("agent/sqlite: database is already in use")

ErrDatabaseInUse means another live resource owns the same SQLite file.

View Source
var ErrUnsupportedSchema = errors.New("unsupported HumanAgent sqlite schema; use a dedicated database")

ErrUnsupportedSchema reports a non-empty database that does not carry the exact clean-break HumanAgent schema identity required by this adapter.

Functions

func Open

func Open(ctx context.Context, config Config) (framework.Resource[agent.Store], error)

Open constructs an owned SQLite Store resource. The returned Resource must either be passed to an Agent as owned configuration or released explicitly. ctx bounds construction only and is not retained.

Types

type Config

type Config struct {
	Path string
}

Config selects one dedicated HumanAgent SQLite persistence identity. Path may be an ordinary filesystem path or an independent :memory: database. Shared-memory SQLite DSNs are rejected because they cannot provide the adapter's single-owner lifecycle guarantee.

Jump to

Keyboard shortcuts

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