Skip to main content

Module db

Module db 

Source
Expand description

db — direct database access at the CLI level.

Leaves:

  • query — execute arbitrary single-statement read-only SQL with a required timeout and an optional per-response token budget.
  • spawn — start the objectiveai-db postgres vehicle using config db connection settings.
  • kill — stop the postmaster started by db spawn.

Modules§

config
kill
db kill — async handler stub.
query
db query — execute arbitrary single-statement read-only SQL against the CLI’s local postgres pool. Returns the row set as typed JSON cells (Postgres → JSON via a per-cell decoder), with column metadata and the wire-protocol command tag.
spawn
db spawn — async handler stub.

Enums§

Command
Request
ResponseItem

Functions§

execute
execute_transform