eventful-sql-server

Crates.ioeventful-sql-server
lib.rseventful-sql-server
version0.2.1
sourcesrc
created_at2023-06-26 01:46:02.411699
updated_at2024-01-21 17:16:11.673904
descriptionA library for event sourcing in Rust
homepagehttps://github.com/stevewillcock/eventful
repositoryhttps://github.com/stevewillcock/eventful
max_upload_size
id899926
size16,212
Stephen Willcock (stevewillcock)

documentation

https://github.com/stevewillcock/eventful

README

eventful

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.

Usage

Don't use this yet. It's not nearly feature complete, is utterly untested, and is definitely not suitable for production use.

SQL Server Setup

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,
);
Commit count: 0

cargo fmt