Versions in this module Expand all Collapse all v0 v0.2.0 Jul 27, 2026 Changes in this version + func Checkpoint(db *sql.DB) error + func CommonModels() []any + func MigrateCommon(db *gorm.DB) error + func Vacuum(db *sql.DB) error + type DBService struct + SessionExt *SessionExtStore + func NewDBService(appDataDir, dbFileName string) *DBService + func (s *DBService) DB() *gorm.DB + func (s *DBService) DeleteADKEvents(sessionID string) error + func (s *DBService) GetADKMaintenanceDB() (*sql.DB, error) + func (s *DBService) GetADKSessionEvents(sessionID string) ([]Message, error) + func (s *DBService) GetDBPath() string + func (s *DBService) GetSessionService() (session.Service, error) + func (s *DBService) ListADKSessions(appName string) ([]Session, error) + type Message struct + ClientMsgID string + Content string + CreatedAt time.Time + ID string + Metadata json.RawMessage + Reasoning string + Role string + Seq int64 + SessionID string + ToolCall json.RawMessage + TurnID string + type Session struct + ApprovalMode string + CreatedAt time.Time + ID string + LLMLastSentMsgID string + SessionID string + Title string + TokenUsage string + UpdatedAt time.Time + WorkspaceID string + type SessionExtModel struct + ApprovalMode string + SessionID string + SystemPrompt string + Title string + TokenUsage string + func (SessionExtModel) TableName() string + type SessionExtStore struct + func NewSessionExtStore(db *gorm.DB) *SessionExtStore + func (s *SessionExtStore) Delete(sessionID string) error + func (s *SessionExtStore) GetApprovalMode(sessionID string) string + func (s *SessionExtStore) GetSessionExt(sessionID string) *SessionExtModel + func (s *SessionExtStore) GetSessionExtBatch(sessionIDs []string) map[string]*SessionExtModel + func (s *SessionExtStore) SaveSessionExt(m *SessionExtModel) error + func (s *SessionExtStore) SetApprovalMode(sessionID, mode string) error