treehouselabs / snapshot-store
2.0
2017-05-15 09:40 UTC
Requires
- php: >=7.0
- treehouselabs/domain: ^1.0|^2.0
Requires (Dev)
- doctrine/dbal: ~2.5
- phpunit/phpunit: ^5.0
This package is not auto-updated.
Last update: 2024-10-27 03:10:50 UTC
README
Library for storing snapshots
Installation
composer require treehouselabs/snapshot-store
Database
Basic SQL schema for snapshot store. Adapt to your needs.
CREATE TABLE `snapshot_store` ( `id` int(11) NOT NULL AUTO_INCREMENT, `aggregate_id` varchar(255) NOT NULL, `payload` longtext NOT NULL, `version` int(11) NOT NULL, `datetime_created` datetime NOT NULL, `checksum` varchar(255) NOT NULL, `class` varchar(255) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `UNIQ_D1F10563D0BBCCBEBF1CD3C3` (`aggregate_id`,`version`,`checksum`) )
Testing
composer test
Security
If you discover any security related issues, please email dev@treehouse.nl instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.