postgres-service 0.19.1

Parse Postgres service configuration files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Introduction

If you use postgres's [service feature](https://www.postgresql.org/docs/current/static/libpq-pgservice.html)
for configuring your connections, then this is the library for you.

This is for use with the [Postgres crate](https://crates.io/crates/postgres).

# Example

This example uses the service name `mydb` and overrides
the `user` value, then makes the connection.

	let conn = postgres_service::load_connect_params("mydb")
		.expect("unable to find configuration")
		.user("your_user_name")
		.connect(postgres::NoTls)
		.expect("unable to connect");