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.
Type Declaration
Section titled “Type Declaration”migrateToLatest
Section titled “migrateToLatest”migrateToLatest: () =>
Promise<MigrationResult>
Create or upgrade the schema.
Returns
Section titled “Returns”Promise<MigrationResult>
truncate
Section titled “truncate”truncate: () =>
Promise<void>
Delete all job and blocker rows. Intended for tests.
Returns
Section titled “Returns”Promise<void>
Type Parameters
Section titled “Type Parameters”TTxContext
Section titled “TTxContext”TTxContext extends BaseTxContext
TJobId
Section titled “TJobId”TJobId extends string = UUID