sqlstore

package module
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialect

type Dialect string

Dialect selects SQL differences between supported databases.

const (
	DialectPostgres Dialect = "postgres"
	DialectSQLite   Dialect = "sqlite"
)

type Memory

type Memory struct {
	// contains filtered or unexported fields
}

Memory is a SQL-backed session memory store.

func New

func New(
	ctx context.Context,
	db *sql.DB,
	dialect Dialect,
	embedder intent.Embedder,
	migrate bool,
) (*Memory, error)

New opens a Memory store over db. migrate must be true on first use to create tables.

func (*Memory) ForSession

func (m *Memory) ForSession(sessionID string) intent.SessionMemory

Jump to

Keyboard shortcuts

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