prooph / pdo-snapshot-store
PDO Snapshot Store Implementation
Installs: 148 724
Dependents: 4
Suggesters: 2
Security: 0
Stars: 25
Watchers: 7
Forks: 11
Open Issues: 1
Requires
- php: ^7.4 || ^8.0
- prooph/snapshot-store: ^1.1
Requires (Dev)
- php-coveralls/php-coveralls: ^2.2
- phpspec/prophecy: ^1.10.3
- phpunit/phpunit: ^9.5
- prooph/bookdown-template: ^0.2.3
- prooph/php-cs-fixer-config: ^0.5
- psr/container: ^1.0
- sandrokeil/interop-config: ^2.0.1
- sebastian/comparator: ^4.0
Suggests
- prooph/pdo-event-store: ^1.0 For usage with MySQL or Postgres as event store
- prooph/snapshotter: ^2.0 Taking snapshots with ease
- psr/container: ^1.0 for usage of provided factories
- sandrokeil/interop-config: ^2.0.1 for usage of provided factories
Conflicts
- sandrokeil/interop-config: <2.0.1
This package is auto-updated.
Last update: 2024-10-30 01:53:41 UTC
README
Important
This library will receive support until December 31, 2019 and will then be deprecated.
For further information see the official announcement here: https://www.sasaprolic.com/2018/08/the-future-of-prooph-components.html
Overview
PDO implementation of snapshot store
Installation
You can install prooph/pdo-snapshot-store via composer by adding "prooph/pdo-snapshot-store": "^1.0"
as requirement to your composer.json.
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.
MySql
ALTER TABLE `snapshots` DROP INDEX `ix_aggregate_id`, ADD PRIMARY KEY(`aggregate_id`);
Postgres
ALTER TABLE "snapshots" DROP CONSTRAINT "snapshots_aggregate_id_key", ADD PRIMARY KEY ("aggregate_id");
Support
- Ask questions on Stack Overflow tagged with #prooph.
- File issues at https://github.com/prooph/pdo-snapshot-store/issues.
- Say hello in the prooph gitter chat.
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.
License
Released under the New BSD License.