Documentation
¶
Index ¶
- type Queries
- func (q *Queries) BindHistoryTurnAssistantByRequest(ctx context.Context, arg dbsqlc.BindHistoryTurnAssistantByRequestParams) (dbstore.HistoryTurn, error)
- func (q *Queries) BindLatestHistoryTurnAssistant(ctx context.Context, arg dbsqlc.BindLatestHistoryTurnAssistantParams) (dbstore.HistoryTurn, error)
- func (q *Queries) CreateHistoryTurn(ctx context.Context, arg dbsqlc.CreateHistoryTurnParams) (dbstore.HistoryTurn, error)
- func (q *Queries) CreateHistoryTurnWithID(ctx context.Context, arg dbsqlc.CreateHistoryTurnWithIDParams) (dbstore.HistoryTurn, error)
- func (q *Queries) CreateHistoryTurnWithIDAtPosition(ctx context.Context, arg dbsqlc.CreateHistoryTurnWithIDAtPositionParams) (dbstore.HistoryTurn, error)
- func (q *Queries) GetHistoryTurnByID(ctx context.Context, arg dbsqlc.GetHistoryTurnByIDParams) (dbstore.HistoryTurn, error)
- func (q *Queries) GetLatestVisibleHistoryTurnBySession(ctx context.Context, sessionID pgtype.UUID) (dbstore.HistoryTurn, error)
- func (q *Queries) GetVisibleHistoryTurnByMessage(ctx context.Context, arg dbsqlc.GetVisibleHistoryTurnByMessageParams) (dbstore.HistoryTurn, error)
- func (q *Queries) InTx(ctx context.Context, fn func(dbstore.Queries) error) error
- func (q *Queries) ListHistoryTurnsByBot(ctx context.Context, botID pgtype.UUID) ([]dbstore.HistoryTurn, error)
- func (q *Queries) SupersedeHistoryTurn(ctx context.Context, arg dbsqlc.SupersedeHistoryTurnParams) (dbstore.HistoryTurn, error)
- func (*Queries) SupportsAtomicDirectHistoryTurnWrites() bool
- func (q *Queries) SupportsTransactions() bool
- func (q *Queries) WithTx(tx pgx.Tx) dbstore.Queries
- type Store
- func (s *Store) ActivateUserRuntime(ctx context.Context, runtimeID, apiToken string) (dbstore.UserRuntimeRecord, error)
- func (s *Store) ActiveWorkdirs(ctx context.Context, botID string) ([]dbstore.BotWorkdirRecord, error)
- func (s *Store) ArchiveWorkdir(ctx context.Context, botID, workdirID string) error
- func (s *Store) BackfillUserRuntimeName(ctx context.Context, runtimeID, userID, name, defaultName string) (bool, error)
- func (s *Store) CountAccounts(ctx context.Context) (int64, error)
- func (s *Store) CreateAccount(ctx context.Context, input dbstore.CreateAccountInput) (dbstore.AccountRecord, error)
- func (s *Store) CreateOrUpdateMount(ctx context.Context, botID, runtimeID string) (dbstore.BotRemoteRuntimeBindingRecord, error)
- func (s *Store) CreateUser(ctx context.Context, input dbstore.CreateUserInput) (dbstore.AccountRecord, error)
- func (s *Store) CreateUserRuntime(ctx context.Context, input dbstore.CreateUserRuntimeInput) (dbstore.UserRuntimeRecord, error)
- func (s *Store) CreateWorkdir(ctx context.Context, input dbstore.CreateBotWorkdirInput) (dbstore.BotWorkdirRecord, error)
- func (s *Store) DeleteMount(ctx context.Context, botID, targetID string) error
- func (s *Store) ExpirePendingUserRuntimes(ctx context.Context, userID string) error
- func (s *Store) GetByIdentity(ctx context.Context, identity string) (dbstore.AccountRecord, error)
- func (s *Store) GetByUserID(ctx context.Context, userID string) (dbstore.AccountRecord, error)
- func (s *Store) GetMount(ctx context.Context, botID, targetID string) (dbstore.BotRemoteRuntimeBindingRecord, error)
- func (s *Store) GetPrimaryMount(ctx context.Context, botID string) (dbstore.BotRemoteRuntimeBindingRecord, error)
- func (s *Store) GetUserRuntimeByAPIToken(ctx context.Context, apiToken string) (dbstore.UserRuntimeRecord, error)
- func (s *Store) GetWorkdir(ctx context.Context, botID, workdirID string) (dbstore.BotWorkdirRecord, error)
- func (s *Store) IsValidTitleModel(ctx context.Context, modelID string) (bool, error)
- func (s *Store) List(ctx context.Context) ([]dbstore.AccountRecord, error)
- func (s *Store) ListGrantsByRuntimeOwner(ctx context.Context, ownerUserID string) ([]dbstore.BotRemoteRuntimeBindingRecord, error)
- func (s *Store) ListMounts(ctx context.Context, botID string) ([]dbstore.BotRemoteRuntimeBindingRecord, error)
- func (s *Store) ListUserRuntimes(ctx context.Context, userID string) ([]dbstore.UserRuntimeRecord, error)
- func (s *Store) ListWorkdirs(ctx context.Context, botID string, includeArchived bool) ([]dbstore.BotWorkdirRecord, error)
- func (s *Store) Pool() *pgxpool.Pool
- func (s *Store) RemoveMember(ctx context.Context, userID string) error
- func (s *Store) RenameWorkdir(ctx context.Context, botID, workdirID, name string) (dbstore.BotWorkdirRecord, error)
- func (s *Store) RevokeUserRuntime(ctx context.Context, runtimeID, userID string) error
- func (s *Store) SQLC() *dbsqlc.Queries
- func (s *Store) Search(ctx context.Context, query string, limit int32) ([]dbstore.AccountRecord, error)
- func (s *Store) SetPrimary(ctx context.Context, botID, targetID string) error
- func (s *Store) UpdateAdmin(ctx context.Context, input dbstore.UpdateAccountAdminInput) (dbstore.AccountRecord, error)
- func (s *Store) UpdateLastLogin(ctx context.Context, accountID string) error
- func (s *Store) UpdatePassword(ctx context.Context, input dbstore.UpdateAccountPasswordInput) error
- func (s *Store) UpdateProfile(ctx context.Context, input dbstore.UpdateAccountProfileInput) (dbstore.AccountRecord, error)
- func (s *Store) UpdateToolApproval(ctx context.Context, botID, targetID string, config dbstore.JSON) error
- func (s *Store) WithWorkdirMutation(ctx context.Context, botID string, fn func([]dbstore.BotWorkdirRecord) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queries ¶
func NewQueries ¶
func NewQueriesWithPool ¶
func (*Queries) BindHistoryTurnAssistantByRequest ¶
func (q *Queries) BindHistoryTurnAssistantByRequest(ctx context.Context, arg dbsqlc.BindHistoryTurnAssistantByRequestParams) (dbstore.HistoryTurn, error)
func (*Queries) BindLatestHistoryTurnAssistant ¶
func (q *Queries) BindLatestHistoryTurnAssistant(ctx context.Context, arg dbsqlc.BindLatestHistoryTurnAssistantParams) (dbstore.HistoryTurn, error)
func (*Queries) CreateHistoryTurn ¶
func (q *Queries) CreateHistoryTurn(ctx context.Context, arg dbsqlc.CreateHistoryTurnParams) (dbstore.HistoryTurn, error)
func (*Queries) CreateHistoryTurnWithID ¶
func (q *Queries) CreateHistoryTurnWithID(ctx context.Context, arg dbsqlc.CreateHistoryTurnWithIDParams) (dbstore.HistoryTurn, error)
func (*Queries) CreateHistoryTurnWithIDAtPosition ¶
func (q *Queries) CreateHistoryTurnWithIDAtPosition(ctx context.Context, arg dbsqlc.CreateHistoryTurnWithIDAtPositionParams) (dbstore.HistoryTurn, error)
func (*Queries) GetHistoryTurnByID ¶
func (q *Queries) GetHistoryTurnByID(ctx context.Context, arg dbsqlc.GetHistoryTurnByIDParams) (dbstore.HistoryTurn, error)
func (*Queries) GetLatestVisibleHistoryTurnBySession ¶
func (*Queries) GetVisibleHistoryTurnByMessage ¶
func (q *Queries) GetVisibleHistoryTurnByMessage(ctx context.Context, arg dbsqlc.GetVisibleHistoryTurnByMessageParams) (dbstore.HistoryTurn, error)
func (*Queries) ListHistoryTurnsByBot ¶
func (*Queries) SupersedeHistoryTurn ¶
func (q *Queries) SupersedeHistoryTurn(ctx context.Context, arg dbsqlc.SupersedeHistoryTurnParams) (dbstore.HistoryTurn, error)
func (*Queries) SupportsAtomicDirectHistoryTurnWrites ¶
func (*Queries) SupportsTransactions ¶
SupportsTransactions reports whether InTx opens a real PostgreSQL transaction. Wrappers without a pool or pinned connection retain the historical direct-execution fallback for tests and legacy callers.
type Store ¶
func NewWithQueries ¶
func (*Store) ActivateUserRuntime ¶
func (*Store) ActiveWorkdirs ¶ added in v0.20.0
func (*Store) ArchiveWorkdir ¶
func (*Store) BackfillUserRuntimeName ¶
func (*Store) CreateAccount ¶
func (s *Store) CreateAccount(ctx context.Context, input dbstore.CreateAccountInput) (dbstore.AccountRecord, error)
func (*Store) CreateOrUpdateMount ¶
func (*Store) CreateUser ¶
func (s *Store) CreateUser(ctx context.Context, input dbstore.CreateUserInput) (dbstore.AccountRecord, error)
func (*Store) CreateUserRuntime ¶
func (s *Store) CreateUserRuntime(ctx context.Context, input dbstore.CreateUserRuntimeInput) (dbstore.UserRuntimeRecord, error)
func (*Store) CreateWorkdir ¶
func (s *Store) CreateWorkdir(ctx context.Context, input dbstore.CreateBotWorkdirInput) (dbstore.BotWorkdirRecord, error)
func (*Store) DeleteMount ¶
func (*Store) ExpirePendingUserRuntimes ¶
func (*Store) GetByIdentity ¶
func (*Store) GetByUserID ¶
func (*Store) GetPrimaryMount ¶
func (*Store) GetUserRuntimeByAPIToken ¶
func (*Store) GetWorkdir ¶
func (*Store) IsValidTitleModel ¶
func (*Store) ListGrantsByRuntimeOwner ¶
func (*Store) ListMounts ¶
func (*Store) ListUserRuntimes ¶
func (*Store) ListWorkdirs ¶
func (*Store) RenameWorkdir ¶
func (*Store) RevokeUserRuntime ¶
func (*Store) SetPrimary ¶
func (*Store) UpdateAdmin ¶
func (s *Store) UpdateAdmin(ctx context.Context, input dbstore.UpdateAccountAdminInput) (dbstore.AccountRecord, error)
func (*Store) UpdateLastLogin ¶
func (*Store) UpdatePassword ¶
func (*Store) UpdateProfile ¶
func (s *Store) UpdateProfile(ctx context.Context, input dbstore.UpdateAccountProfileInput) (dbstore.AccountRecord, error)
func (*Store) UpdateToolApproval ¶
func (*Store) WithWorkdirMutation ¶ added in v0.20.0
Click to show internal directories.
Click to hide internal directories.