treehouselabs/snapshot-store

2.0 2017-05-15 09:40 UTC

This package is not auto-updated.

Last update: 2024-10-27 03:10:50 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score

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.

Credits