MysqlStateAdapter
TypeExperimentalSignature
type MysqlStateAdapter<TTxContext, TJobId, TWorkerId> = StateAdapter<TTxContext, TJobId, TWorkerId, "async"> & {
migrateToLatest: () => Promise<MigrationResult>;
};mysql/src/state-adapter/state-adapter.mysql.ts:1993
MySQL and MariaDB state adapter type. Includes migrateToLatest for schema migrations.
Type Parameters
- TTxContextextends
BaseTxContext - TJobIdextends
stringdefaultUUID - TWorkerIdextends
stringdefaultUUID
Type Declaration
- migrateToLatest()(
) => Promise<MigrationResult>Create or upgrade the schema.