Skip to content

Commit 5a35910

Browse files
Doc - update connection string examples (#219)
1 parent 3b8d305 commit 5a35910

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

config/db_tools.standalone.complete.sample.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@
5353

5454
# If you have a single connection, you can use this syntax.
5555
# Connection name will be "default" when configured this way.
56-
connections: "pgsql://username:password@hostname:port?version=16.0&other_option=..."
56+
connections: "pgsql://username:password@hostname:port/database?version=16.0&other_option=..."
5757

5858
# Alternatively, you are allowed to have more than one connection, case
5959
# in which you might synthesize the configuration as this:
6060
#connections:
61-
# connection_one: "pgsql://username:password@hostname:port?version=16.0&other_option=..."
62-
# connection_two: "mysql://username:password@hostname:port?version=8.1&other_option=..."
61+
# connection_one: "pgsql://username:password@hostname:port/database?version=16.0&other_option=..."
62+
# connection_two: "mysql://username:password@hostname:port/database?version=8.1&other_option=..."
6363

6464
# For advanced usage, you may also override any parameter for each connection.
6565
# Each key is a connection name, all parameters above are allowed for each
@@ -72,7 +72,7 @@ connections: "pgsql://username:password@hostname:port?version=16.0&other_option=
7272
# # Any URL built for doctrine/dbal usage should work.
7373
# # URL is the sole mandatory parameter.
7474
# # Complete list of accepted parameters follows.
75-
# url: "pgsql://username:password@hostname:port?version=16.0&other_option=..."
75+
# url: "pgsql://username:password@hostname:port/database?version=16.0&other_option=..."
7676
# backup_binary: /usr/local/bin/vendor-one-dump
7777
# backup_excluded_tables: ['table_one', 'table_two']
7878
# backup_expiration_age: '1 month ago'
@@ -84,7 +84,7 @@ connections: "pgsql://username:password@hostname:port?version=16.0&other_option=
8484
# storage_directory: /path/to/storage
8585
# storage_filename_strategy: datetime
8686
# connection_two:
87-
# url: "mysql://username:password@hostname:port?version=8.1&other_option=..."
87+
# url: "mysql://username:password@hostname:port/database?version=8.1&other_option=..."
8888
# # ...
8989

9090
# You can explicitly set which will be default connection in use when none

config/db_tools.standalone.sample.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Connection name will be "default" when configured this way.
66
# If you have multiple connections, please refer to the exhaustive
77
# sample in 'db_tools.standalone.complete.sample.yaml'.
8-
connections: "pgsql://username:password@hostname:port?version=16.0&other_option=..."
8+
connections: "pgsql://username:password@hostname:port/database?version=16.0&other_option=..."
99

1010
# Where to put generated backups.
1111
# Root directory of the backup storage manager. Default filename

config/packages/db_tools.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ db_tools:
5555
#connections:
5656
# connection_one:
5757
# # Complete list of accepted parameters follows.
58-
# url: "pgsql://username:password@hostname:port?version=16.0&other_option=..."
58+
# url: "pgsql://username:password@hostname:port/database?version=16.0&other_option=..."
5959
# backup_binary: /usr/local/bin/vendor-one-dump
6060
# backup_excluded_tables: ['table_one', 'table_two']
6161
# backup_expiration_age: '1 month ago'

docs/content/configuration/reference.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ connections:
406406
# Any URL built for doctrine/dbal usage should work.
407407
# URL is the sole mandatory parameter.
408408
# Complete list of accepted parameters follows.
409-
url: "pgsql://username:password@hostname:port?version=16.0&other_option=..."
409+
url: "pgsql://username:password@hostname:port/database?version=16.0&other_option=..."
410410
backup_binary: /usr/local/bin/vendor-one-dump
411411
backup_excluded_tables: ['table_one', 'table_two']
412412
backup_expiration_age: '1 month ago'
@@ -422,12 +422,12 @@ connections:
422422
423423
# With all default options, only database DSN.
424424
connections:
425-
connection_two: "mysql://username:password@hostname:port?version=8.1&other_option=..."
425+
connection_two: "mysql://username:password@hostname:port/database?version=8.1&other_option=..."
426426
connection_two: #...
427427
428428
# With a single connection.
429429
# Connection name will be "default".
430-
connections: "pgsql://username:password@hostname:port?version=16.0&other_option=..."
430+
connections: "pgsql://username:password@hostname:port/database?version=16.0&other_option=..."
431431
```
432432

433433
:::warning

0 commit comments

Comments
 (0)