iii / worker
$worker

database

v0.2.1

Talk to PostgreSQL, MySQL, and SQLite from iii — query, execute, transactions, prepared statements, and change feeds.

  • macOS: arm64 · x64
  • Linux: arm64 · armv7 · x64
  • Windows: arm64 · x64 · x86

skill doc

database

index
index.md

database

Connect to PostgreSQL, MySQL, and SQLite from the iii engine. Run read-only queries, write statements, atomic transactions, and prepared-statement sequences over a managed per-database connection pool. Every callable surface lives under the single database::* namespace; SQLite is the recommended starting point because it needs no server, just a file.

The worker resolves the driver from each database's URL scheme (sqlite:, postgres://, postgresql://, mysql://). For the databases: config block, TLS modes, error-code reference, and the per-driver compatibility table (e.g. returning: is a no-op on MySQL; SQLite degrades read_committed / repeatable_read to serializable), see the README.

How-tos

database::*

database::row-change (Postgres logical replication via pgoutput) is registered as a trigger type but is not yet functional in v1.0.0: register_trigger returns UNSUPPORTED while the streaming decode loop waits on an upstream tokio-postgres replication API release. Operators can pre-provision slots and publications now; see the Triggers section of the README for current status and cleanup commands.