[−][src]Function tokio_postgres::connect
pub fn connect<T>(config: &str, tls: T) -> Connect<T> where
T: MakeTlsConnect<Socket>,
A convenience function which parses a connection string and connects to the database.
See the documentation for Config
for details on the connection string format.
Requires the runtime
Cargo feature (enabled by default).