event_bus_postgres v0.4.2 EventBus.Postgres.Store

Basic db actions

Link to this section Summary

Functions

Fetch all events with pagination

Batch insert

Total events since given time

Total events per topic since given time

Delete an event

Delete expired events

Find an event

Link to this section Functions

Link to this function

all(map \\ %{page: 1, per_page: 20, since: 0})

Fetch all events with pagination

Link to this function

batch_insert(events)

Batch insert

Link to this function

count(map \\ %{since: 0})

Total events since given time

Link to this function

count_per_topic(map \\ %{since: 0})

Total events per topic since given time

Delete an event

Link to this function

delete_expired()

Delete expired events

Find an event

Link to this function

find_all_by_transaction_id(map \\ %{page: 1, per_page: 20, since: 0, transaction_id: nil})

Fetch all events with pagination