Doctrine DBAL adapter for the Dynamic Consistency Boundary implementation.
Install via composer:
composer require wwwision/dcb-eventstore-doctrineuse Doctrine\DBAL\DriverManager;
use Doctrine\DBAL\Tools\DsnParser;
use Wwwision\DCBEventStoreDoctrine\DoctrineEventStore;
$dsn = 'pdo-mysql://user:[email protected]:3306/database';
$connection = DriverManager::getConnection((new DsnParser())->parse($dsn));
$eventStore = DoctrineEventStore::create($connection, eventTableName: 'events');// ...
$eventStore->setup();See wwwision/dcb-eventstore for more details and usage examples
Contributions in the form of issues or pull requests are highly appreciated
See LICENSE