Struct hdbconnect::ConnectionManager
[−]
[src]
pub struct ConnectionManager { /* fields omitted */ }
Implementation of r2d2's
ManageConnection
interface.
Methods
impl ConnectionManager
[src]
fn new(connect_params: &ConnectParams) -> ConnectionManager
[src]
Trait Implementations
impl ManageConnection for ConnectionManager
[src]
type Connection = Connection
The connection type this manager deals with.
type Error = HdbError
The error type returned by Connection
s.
fn connect(&self) -> Result<Self::Connection, Self::Error>
[src]
Attempts to create a new connection.
fn is_valid(&self, conn: &mut Self::Connection) -> Result<(), Self::Error>
[src]
Determines if the connection is still connected to the database. Read more
fn has_broken(&self, _conn: &mut Self::Connection) -> bool
[src]
Quickly determines if the connection is no longer usable. Read more