Documentation
¶
Overview ¶
Package sqlite reads Cline's session index, sessions.db: its sessions table, which alone records which agent spawned a sub-agent, yielding its rows as the clinesdk package's. It reads a private copy of the database and its write-ahead log, never the database in place (internal/sqlite), so it neither writes beside a database Cline holds open in WAL mode nor waits on its locks. It is one of the packages of this module that import a database driver, as clinesdk/convert does not: it takes OpenIndex in its Options.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrNotCline = errors.New("the database has no sessions table of Cline's")
ErrNotCline is returned by Open for a database without Cline's sessions table.
var Fixture = isqlite.Fixture
Fixture builds a database at path from SQL text, for tests.
Functions ¶
func RemoveCopies ¶
func RemoveCopies()
RemoveCopies removes the copy of every database open, for a program interrupted while it reads one.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB is a copy of sessions.db, open for reading. It implements clinesdk.Index. A DB is not safe for concurrent use.