Versions in this module Expand all Collapse all v0 v0.5.2 Mar 12, 2026 v0.5.1 Mar 11, 2026 v0.5.0 Mar 9, 2026 Changes in this version + type AddPromptParams struct + Agent string + CreatedAt time.Time + HistoryLen int64 + MachTime string + MachTimeSum int64 + Request string + SessionID string + State string + System string + type AddPromptResponseParams struct + ID int64 + Response sql.NullString + type DBTX interface + ExecContext func(context.Context, string, ...interface{}) (sql.Result, error) + PrepareContext func(context.Context, string) (*sql.Stmt, error) + QueryContext func(context.Context, string, ...interface{}) (*sql.Rows, error) + QueryRowContext func(context.Context, string, ...interface{}) *sql.Row + type Prompt struct + Agent string + CreatedAt time.Time + HistoryLen int64 + ID int64 + MachTime string + MachTimeSum int64 + Request string + Response sql.NullString + SessionID string + State string + System string + type Queries struct + func New(db DBTX) *Queries + func (q *Queries) AddPrompt(ctx context.Context, arg AddPromptParams) (int64, error) + func (q *Queries) AddPromptResponse(ctx context.Context, arg AddPromptResponseParams) error + func (q *Queries) DropPrompts(ctx context.Context) error + func (q *Queries) ListPromptsBySessID(ctx context.Context, sessionID string) (Prompt, error) + func (q *Queries) WithTx(tx *sql.Tx) *Queries