Crates.io | eventful-sql-server |
lib.rs | eventful-sql-server |
version | 0.2.1 |
source | src |
created_at | 2023-06-26 01:46:02.411699 |
updated_at | 2024-01-21 17:16:11.673904 |
description | A library for event sourcing in Rust |
homepage | https://github.com/stevewillcock/eventful |
repository | https://github.com/stevewillcock/eventful |
max_upload_size | |
id | 899926 |
size | 16,212 |
This is an event sourcing system for rust. Inspired by Akka persistence, Titanclass edfsm, and Heiko Seeberger's EventSourced. I'll add links here soon to those projects and eventually some info about where this differs from those.
Don't use this yet. It's not nearly feature complete, is utterly untested, and is definitely not suitable for production use.
create table journal
(
offset bigint not null primary key,
entity_type varchar(32) not null,
persistence_id varchar(32) not null,
event_type varchar(32) not null,
message varbinary(8000) not null,
deleted bit null default 0,
event_date datetime2 not null,
);
create table snapshot
(
name varchar(64) not null primary key,
offset bigint not null,
value varbinary( max) not null,
);