Function disintegrate_postgres::setup
source · pub async fn setup(pool: &PgPool) -> Result<(), Error>
Expand description
Initializes the PostgreSQL DB
It creates all the tables, indexes, functions, and triggers used by the Postgres event store.
If the listener
feature is enabled, it also initializes the DB for the Postgres event listener.