Crate postgres_service

source ·
Expand description

Parse Postgres service configuration files

Postgres service files are configuration files that contain connection parameters

§Example

postgres_service::load_connect_params("mydb")
   .expect("reading postgres service")
   .user("username") // optionally override the username
   .connect(postgres::NoTls)
   .expect("connecting to postgres");

Modules§

  • For use with tokio-postgres

Functions§