macro_rules! get_db_pool {
() => { ... };
}Expand description
Retrieves a reference to the global database pool.
Thin wrapper over db::get_db_pool. Panics if init_db_pool! has not run.
ยงExample
use zirv_db_sqlx::get_db_pool;
let pool = get_db_pool!();
// Use `pool` for database operations...