Skip to main content

db_client

Macro db_client 

Source
macro_rules! db_client {
    ($marker:ident, $name:literal, max = $max:expr) => { ... };
    ($marker:ident, $name:literal, max = $max:expr, statement_timeout_secs = $secs:expr) => { ... };
    (@build $marker:ident, $name:literal, $max:expr, $timeout:expr) => { ... };
}
Expand description

Declare a database client: a named pool with its own size and optional statement timeout.