brook_storage_postgres v0.1.2 API Reference

Modules

Implements the Brook.Storage behaviour for the Postgres database, saving the application view state key/value pairs as JSONB records and the event structs that generate those key/value pairs as compressed binary encodings of in a BYTEA database type with optional truncation of events by type.

Provides a simple spawned process for cleaning up/pruning event lists when event limits are defined by the application.

Abstracts the Postgrex SQL query functions away from the storage behaviour implementation.

Encapsulates the SQL statements BrookStoragePostgres submits to the database as functions for easier maintenance.