File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,10 @@ The following block shows all possible configuration keys:
52
52
path : ' %kernel.project_dir%/var/data/data.sqlite'
53
53
memory : true
54
54
unix_socket : /tmp/mysql.sock
55
+ replicas :
56
+ read_only_replica :
57
+ url : mysql://db_user:[email protected] :3306/db_name_replica
58
+ keep_replica : true
55
59
# the DBAL wrapperClass option
56
60
wrapper_class : App\DBAL\MyConnectionWrapper
57
61
charset : utf8mb4
@@ -87,12 +91,23 @@ The following block shows all possible configuration keys:
87
91
path =" %kernel.project_dir%/var/data/data.sqlite"
88
92
memory =" true"
89
93
unix-socket =" /tmp/mysql.sock"
94
+ keep-replica =" true"
90
95
wrapper-class =" App\DBAL\MyConnectionWrapper"
91
96
charset =" utf8mb4"
92
97
logging =" %kernel.debug%"
93
98
platform-service =" App\DBAL\MyDatabasePlatformService"
94
99
server-version =" 8.0.37" >
95
100
101
+ <doctrine : replica
102
+ name =" read_only_replica"
103
+ dbname =" database"
104
+ host =" localhost"
105
+ port =" 1234"
106
+ user =" user"
107
+ password =" secret"
108
+ driver =" pdo_mysql"
109
+ />
110
+
96
111
<doctrine : option key =" foo" >bar</doctrine : option >
97
112
<doctrine : mapping-type name =" enum" >string</doctrine : mapping-type >
98
113
<doctrine : type name =" custom" >App\DBAL\MyCustomType</doctrine : type >
You can’t perform that action at this time.
0 commit comments