Skip to content

SqliteStateAdapter

SqliteStateAdapter<TTxContext, TJobId> = StateAdapter<TTxContext, TJobId> & object

Defined in: packages/sqlite/src/state-adapter/state-adapter.sqlite.ts:2305

SQLite state adapter type. Includes migrateToLatest for schema migrations and truncate for clearing all job data.

migrateToLatest: () => Promise<MigrationResult>

Create or upgrade the schema.

Promise<MigrationResult>

truncate: () => Promise<void>

Delete all job and blocker rows. Intended for tests.

Promise<void>

TTxContext extends BaseTxContext

TJobId extends string = UUID