7 releases (4 breaking)

0.19.0 Dec 26, 2020
0.18.0 Oct 20, 2020
0.17.0 Jan 6, 2020
0.15.1 Dec 31, 2018
0.1.1 Apr 21, 2017

#627 in Database interfaces

39 downloads per month

BSD-2-Clause

4KB
62 lines

Introduction

If you use postgres's service feature for configuring your connections, then this is the library for you.

This is for use with the Postgres crate.

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");

Dependencies

~8.5MB
~178K SLoC

_