Snapshot Store
![Software License][ico-license]
![Coverage Status][ico-scrutinizer]
, (*1)
Library for storing snapshots, (*2)
Installation
composer require treehouselabs/snapshot-store
Database
Basic SQL schema for snapshot store. Adapt to your needs., (*3)
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., (*4)
License
The MIT License (MIT). Please see License File for more information., (*5)
Credits