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 is HumanLLM's official single-process SQLite Store adapter. It is one official implementation of llm.Store, not a requirement imposed on applications: custom databases implement the same public port and run the same humantest conformance suite.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidConfig means Open was given no usable independent database.
	ErrInvalidConfig = errors.New("llm/sqlite: invalid configuration")
	// ErrDatabaseInUse means another live resource owns the same file identity.
	ErrDatabaseInUse = errors.New("llm/sqlite: database is already in use")
)
View Source
var ErrUnsupportedSchema = errors.New("unsupported HumanLLM SQLite schema; use a dedicated database")

ErrUnsupportedSchema rejects migrations and accidental database sharing. This pre-release adapter accepts only an empty database or its exact schema.

Functions

func Open

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

Open constructs an owned Store resource. ctx bounds construction only. The caller must transfer the Resource to a HumanLLM runtime or release it.

Types

type Config

type Config struct {
	Path string
}

Config selects one dedicated HumanLLM persistence identity. Path may be an ordinary filesystem path, a file: URI, or :memory:. Shared-memory databases are rejected because they cannot satisfy the adapter's single-owner contract.

Jump to

Keyboard shortcuts

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