@rvkang/batch-mariadb
v0.1.0
Published
MariaDB persistence adapter for nest-batch.
Maintainers
Readme
@rvkang/batch-mariadb
MariaDB-backed repository, checkpoint, execution-context, and lock storage for
nest-batch.
Install
pnpm add @rvkang/batch-mariadbInitialize storage
import { MariaDbBatchStorage } from "@rvkang/batch-mariadb";
const storage = new MariaDbBatchStorage({
connectionString: process.env.DATABASE_URL,
database: "nest_batch"
});
await storage.initialize();
// Pass storage to DefaultBatchRunner or NestBatchModule.forRoot({ storage }).
await storage.close();initialize() idempotently creates this adapter's tables. Durable execution
state does not make external writes exactly once, so writers must tolerate a
restart or redelivery through idempotency.
