MysqlStateAdapter

TypeExperimental

Signature

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

  • TTxContext
    extends BaseTxContext
  • TJobId
    extends string
    defaultUUID
  • TWorkerId
    extends string
    defaultUUID

Type Declaration

  • migrateToLatest()
    () => Promise<MigrationResult>
    Create or upgrade the schema.
esc

Search guides, integrations and every exported symbol.

↑ ↓ to navigate↵ to open