Skip to main content

pool

Function pool 

Source
pub fn pool() -> &'static DatabaseConnection
Expand description

Returns the global connection, panicking if init/set_pool was never called. Use from request handlers where boot is guaranteed to have run.