Skip to main content

Module db

Module db 

Source
Expand description

db — CLI-side dispatch for database access + lifecycle: query, spawn, kill.

Modules§

config
config db sub-tier.
kill
db kill --global|--state — terminate db server(s) by killing the owner(s) of their per-state lock at <dir>/state/<state>/locks key db. --state hits the current state; --global fans out across every state concurrently. Idempotent: a count of zero is not an error.
query
db query — pre-flight validate, then run under the request’s optional timeout (threaded to postgres as statement_timeout when set; uncapped when omitted).
spawn
db spawn — start the objectiveai-db postgres supervisor in the background.

Functions§

execute