Skip to main content

get_db_pool

Function get_db_pool 

Source
pub fn get_db_pool() -> &'static DbPool
Expand description

Returns a reference to the global database pool.

ยงPanics

Panics if init_db_pool has not been called yet.