Versions in this module Expand all Collapse all v1 v1.0.2 Jan 28, 2026 v1.0.0 Jan 25, 2026 Changes in this version + type DB struct + func New(dsn string) (*DB, error) + func (db *DB) AddMessage(sessionID string, message *pkg.Message) error + func (db *DB) Close() error + func (db *DB) CreateSession(session *pkg.Session) error + func (db *DB) DeleteSession(id string) error + func (db *DB) GetSession(id string) (*pkg.Session, error) + func (db *DB) GetSessionMessages(sessionID string) ([]pkg.Message, error) + func (db *DB) GetSetting(key string) (string, error) + func (db *DB) GetWorkspaceMetadata(projectPath string) (*pkg.ProjectContext, error) + func (db *DB) ListSessions(limit int) ([]*pkg.Session, error) + func (db *DB) LogToolExecution(sessionID, messageID, toolName string, input map[string]interface{}, ...) error + func (db *DB) SaveWorkspaceMetadata(ctx *pkg.ProjectContext) error + func (db *DB) SetSetting(key, value string) error + func (db *DB) UpdateSession(session *pkg.Session) error