pub trait ConnectionHolder {
// Required methods
fn get_connection(&self) -> &DbConn;
fn get_connection_ref(&self) -> Arc<DbConn>;
fn get_connection_raw(&self) -> *const DbConn;
}Required Methods§
Sourcefn get_connection(&self) -> &DbConn
fn get_connection(&self) -> &DbConn
Sourcefn get_connection_ref(&self) -> Arc<DbConn>
fn get_connection_ref(&self) -> Arc<DbConn>
Returns the internal database connection. This will return the Arc reference that contains the connection object or pool.