PgStateAdapter
PgStateAdapter<
TTxContext,TJobId> =StateAdapter<TTxContext,TJobId> &object
Defined in: packages/postgres/src/state-adapter/state-adapter.pg.ts:2194
PostgreSQL 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