Skip to main content
readonly sql: AgentHarnessSqlPort

On the Agent Runtime

The runtime adapter builds the port from host, which carries the protected members of the Agent class.
  • exec() calls exec() on this.ctx.storage.sql, the instance’s own SQLite database. It rejects transaction-control statements such as BEGIN.
  • transactionSync() calls this.ctx.storage.transactionSync(). If its function throws, every statement the function ran is rolled back.

AgentHarnessSqlPort

Synchronous per-actor SQL surface matching ActorStorage exactly. Methods exec()
exec<T>(query, …bindings): SqlCursor<T>
Type Parameters Parameters Returns SqlCursor<T> transactionSync()
transactionSync<T>(fn): T
Type Parameters Parameters Returns T