API reference
API reference
The generated reference is in docs/api. It covers four modules:
@fungi.computer/watchdog:Watchdog.make,WatchdogRuntime,WatchdogOptions,WatchdogError, and the job, result and SQLite owner types with their Effect schemas.@fungi.computer/watchdog/effect:makeRuntime,WatchdogRuntimeEffectandEffectWatchdogOptions. The Effect runtime also hasreadSettled(limit, afterSequence?)for paging through settled jobs.@fungi.computer/watchdog/node-sqlite:fromNodeSqlite(database)for a caller-owned Node SQLite database. It returnsNodeSqliteOwner; itsNodeSqliteCursorprovidestoArray()andone(), which returns exactly one decoded row and throws for zero or multiple rows.@fungi.computer/watchdog/d1:createD1Watchdog,prepareD1Admission,watchdogD1SchemaandpurgeD1Queues.@fungi.computer/watchdog/postgres:createPostgresWatchdog,watchdogPostgresSchemaandpurgePostgresQueues.
Modules
Section titled “Modules”| Module |
|---|
| d1 |
| effect |
| index |
| node-sqlite |
| postgres |