2017 © Pedro Peláez
 

library pdo-snapshot-store

PDO Snapshot Store Implementation

image

prooph/pdo-snapshot-store

PDO Snapshot Store Implementation

  • Wednesday, May 16, 2018
  • by prooph
  • Repository
  • 5 Watchers
  • 11 Stars
  • 12,601 Installations
  • PHP
  • 5 Dependents
  • 3 Suggesters
  • 7 Forks
  • 0 Open issues
  • 12 Versions
  • 41 % Grown

The README.md

Prooph PDO Snapshot Store

Continuous Integration Coverage Status Gitter, (*1)

Important

This library will receive support until December 31, 2019 and will then be deprecated., (*2)

For further information see the official announcement here: https://www.sasaprolic.com/2018/08/the-future-of-prooph-components.html, (*3)

Overview

PDO implementation of snapshot store, (*4)

Installation

You can install prooph/pdo-snapshot-store via composer by adding "prooph/pdo-snapshot-store": "^1.0" as requirement to your composer.json., (*5)

Upgrade

If you come from version 1.4.0 you are advised to manually update the table schema to fix an omitted primary key. You can issue the following statements or drop the snapshot table, recreate them from the provided scripts and restart projections., (*6)

MySql, (*7)

ALTER TABLE `snapshots` DROP INDEX `ix_aggregate_id`, ADD PRIMARY KEY(`aggregate_id`);

Postgres, (*8)

ALTER TABLE "snapshots" DROP CONSTRAINT "snapshots_aggregate_id_key", ADD PRIMARY KEY ("aggregate_id");

Support

Contribute

Please feel free to fork and extend existing or add new plugins and send a pull request with your changes! To establish a consistent code quality, please provide unit tests for all your changes and may adapt the documentation., (*9)

License

Released under the New BSD License., (*10)

The Versions