sofie-db 0.3.0

The handler model (inputs, events, replies), aggregates, read models, the query builder, the unit of work, migrations, the worker and the database seam.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use sofie_core::Result;

use crate::Input;

pub trait Create: Sized {
    type Input: Input;
    type Owner;

    fn create(input: Self::Input, owner: Self::Owner) -> Result<Self>;
}

pub trait Update {
    type Input: Input;

    fn update(&mut self, changes: Self::Input) -> Result<()>;
}