Skip to content

fieg/snapshot-store

 
 

Repository files navigation

Snapshot Store

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

About

Snapshot store

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%