eventsourcing_sqlite

Types

pub type Metadata =
  List(#(String, String))

Functions

pub fn create_event_table(
  sqlite_store: SqliteStore(a, b, c, d),
) -> Result(Nil, EventSourcingError(e))
pub fn create_snapshot_table(
  sqlite_store: SqliteStore(a, b, c, d),
) -> Result(Nil, EventSourcingError(d))
pub fn load_events(
  sqlite_store: SqliteStore(a, b, c, d),
  tx: Connection,
  aggregate_id: String,
  start_from: Int,
) -> Result(List(EventEnvelop(c)), EventSourcingError(e))
pub fn new(
  sqlight_connection_string connection_string: String,
  event_encoder event_encoder: fn(a) -> String,
  event_decoder event_decoder: Decoder(a),
  event_type event_type: String,
  event_version event_version: String,
  aggregate_type aggregate_type: String,
  entity_encoder entity_encoder: fn(b) -> String,
  entity_decoder entity_decoder: Decoder(b),
) -> EventStore(SqliteStore(b, c, a, d), b, c, a, d, Connection)
Search Document