An adapter for the reSolve CQRS/ES framework that persists events in MySQL databases. Current stable version 0.26.5, released 2021. Works with reSolve v0.26.x (Node ≥10.9). Differentiators: automates schema initialization for event sourcing tables (events, snapshots, subscribers), supports internal and external MySQL via Knex, integrates seamlessly with reSolve's query-side projections. Requires MySQL 5.7+ and a configured reSolve application. Alternative to postgresql or sqlite adapters.
npm install resolve-eventstore-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to MySQL, loads events by aggregate ID and event type, then disconnects.
Switch to ES module imports or use dynamic import().
Use 'table' instead of 'eventsTable' in adapter config.
Grant CREATE, ALTER, INSERT, SELECT on the target database before startup.
Reduce poolSize or increase MySQL max_connections.
Use 'snapshotsTable' if you need to customize; defaults to 'snapshots'.
npm install resolve-eventstore-mysql@0.26.5
Use import or dynamic import(): const createAdapter = (await import('resolve-eventstore-mysql')).default;CREATE DATABASE resolve_events; or change database config.
Drop existing tables or use different table names in config.