[−][src]Trait please::ConnectionProvider
Trait for types providing database connections. This is typically
implemented by an Arc<ConnectionPool>
or functionally equivalent
type.
Associated Types
type Error
Error type which may be returned when the provider is unable to obtain a database connection.
type Connection: Connection<Backend = Pg>
Type of the connection returned. Currently the connection must use the postgres backend.
Required Methods
fn get(&self) -> Result<Self::Connection, Self::Error>
Obtain a connection from this provider.