Merge pull request #692 from nguiard/master

Fix unix socket location in docs (/var/run/postgresql instead of /var/lib/postgresql)
This commit is contained in:
Steven Fackler
2020-11-11 07:08:53 -05:00
committed by GitHub

View File

@@ -59,7 +59,7 @@ use tokio_postgres::{Error, Socket};
/// ```
///
/// ```not_rust
/// host=/var/lib/postgresql,localhost port=1234 user=postgres password='password with spaces'
/// host=/var/run/postgresql,localhost port=1234 user=postgres password='password with spaces'
/// ```
///
/// ```not_rust
@@ -80,7 +80,7 @@ use tokio_postgres::{Error, Socket};
/// ```
///
/// ```not_rust
/// postgresql://user:password@%2Fvar%2Flib%2Fpostgresql/mydb?connect_timeout=10
/// postgresql://user:password@%2Fvar%2Frun%2Fpostgresql/mydb?connect_timeout=10
/// ```
///
/// ```not_rust
@@ -88,7 +88,7 @@ use tokio_postgres::{Error, Socket};
/// ```
///
/// ```not_rust
/// postgresql:///mydb?user=user&host=/var/lib/postgresql
/// postgresql:///mydb?user=user&host=/var/run/postgresql
/// ```
#[derive(Clone)]
pub struct Config {