pub fn establish_connection_pool()Expand description
Establish a connection pool to the database. After successful initialisation of the connection pool, spawns a background ready probe task.
§Parameters
urlset to the postgres connection string needed to connect to the database. IF it is None, then the env var “DATABASE_URL” will be used for this connection string. eg: “postgres://catalyst-dev:CHANGE_ME@localhost/CatalystDev”
§Notes
The env var “DATABASE_URL” can be set directly as an anv var, or in a
.env file.
If connection to the pool is OK, the LIVE_EVENT_DB atomic flag is set to true.