EventStore v0.13.2 EventStore.Storage.Appender View Source

Append-only storage of events to a stream

Link to this section Summary

Functions

Append the given list of events to storage

Link to this section Functions

Link to this function append(conn, stream_id, events) View Source

Append the given list of events to storage.

Events are inserted atomically in batches of 1,000 within a single transaction. This is due to Postgres’ limit of 65,535 parameters in a single statement.

Returns {:ok, event_numbers} on success, where event_numbers is a list of the event_number assigned to each event by the database.