Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbb7e0d0

Browse files
Merge pull request#1225 from transcaffeine/master
docs([tokio-]postgres/config): fix examples for unix socket paths
2 parentsa6fd520 +20f19f3 commitbb7e0d0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎postgres/src/config.rs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ use tokio_postgres::{Error, Socket};
9494
/// ```
9595
///
9696
/// ```not_rust
97-
/// host=/var/lib/postgresql,localhost port=1234 user=postgres password='password with spaces'
97+
/// host=/var/run/postgresql,localhost port=1234 user=postgres password='password with spaces'
9898
/// ```
9999
///
100100
/// ```not_rust
@@ -119,15 +119,15 @@ use tokio_postgres::{Error, Socket};
119119
/// ```
120120
///
121121
/// ```not_rust
122-
/// postgresql://user:password@%2Fvar%2Flib%2Fpostgresql/mydb?connect_timeout=10
122+
/// postgresql://user:password@%2Fvar%2Frun%2Fpostgresql/mydb?connect_timeout=10
123123
/// ```
124124
///
125125
/// ```not_rust
126126
/// postgresql://user@host1:1234,host2,host3:5678?target_session_attrs=read-write
127127
/// ```
128128
///
129129
/// ```not_rust
130-
/// postgresql:///mydb?user=user&host=/var/lib/postgresql
130+
/// postgresql:///mydb?user=user&host=/var/run/postgresql
131131
/// ```
132132
#[derive(Clone)]
133133
pubstructConfig{

‎tokio-postgres/src/config.rs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ pub enum Host {
180180
/// ```
181181
///
182182
/// ```not_rust
183-
/// host=/var/lib/postgresql,localhost port=1234 user=postgres password='password with spaces'
183+
/// host=/var/run/postgresql,localhost port=1234 user=postgres password='password with spaces'
184184
/// ```
185185
///
186186
/// ```not_rust
@@ -205,15 +205,15 @@ pub enum Host {
205205
/// ```
206206
///
207207
/// ```not_rust
208-
/// postgresql://user:password@%2Fvar%2Flib%2Fpostgresql/mydb?connect_timeout=10
208+
/// postgresql://user:password@%2Fvar%2Frun%2Fpostgresql/mydb?connect_timeout=10
209209
/// ```
210210
///
211211
/// ```not_rust
212212
/// postgresql://user@host1:1234,host2,host3:5678?target_session_attrs=read-write
213213
/// ```
214214
///
215215
/// ```not_rust
216-
/// postgresql:///mydb?user=user&host=/var/lib/postgresql
216+
/// postgresql:///mydb?user=user&host=/var/run/postgresql
217217
/// ```
218218
#[derive(Clone,PartialEq,Eq)]
219219
pubstructConfig{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp