Commit b97d446
committed
refactor: rename MysqlConfig to MysqlSetupConfig in docker_compose context
Renamed infrastructure::docker_compose::MysqlConfig to MysqlSetupConfig to
clearly distinguish its purpose from the domain MysqlConfig type.
Key distinction:
- Domain MysqlConfig: Used for connecting to existing MySQL database
* Has user credentials (username, password, host)
* No root password needed
- Infrastructure MysqlSetupConfig: Used for Docker Compose MySQL initialization
* Has root password for database creation
* Creates database, user, and sets permissions
* No host field (always service name in Docker Compose)
Changes:
- Renamed MysqlConfig → MysqlSetupConfig
- Removed unused from_domain() method and DomainMysqlConfig import
- Updated documentation to explain initialization vs connection distinction
- Removed test for unused from_domain() method
- Updated all references in DatabaseConfig and builder
This makes the code more self-documenting and prevents confusion between
connecting to a database vs initializing a new one.1 parent 634a1e7 commit b97d446
File tree
1 file changed
+23
-14
lines changed- src/infrastructure/templating/docker_compose/template/wrappers/docker_compose
1 file changed
+23
-14
lines changedLines changed: 23 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
117 | 126 | | |
118 | | - | |
119 | | - | |
| 127 | + | |
| 128 | + | |
120 | 129 | | |
121 | | - | |
| 130 | + | |
122 | 131 | | |
123 | | - | |
| 132 | + | |
124 | 133 | | |
125 | | - | |
| 134 | + | |
126 | 135 | | |
127 | 136 | | |
128 | 137 | | |
| |||
155 | 164 | | |
156 | 165 | | |
157 | 166 | | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
162 | 171 | | |
163 | 172 | | |
164 | 173 | | |
| |||
171 | 180 | | |
172 | 181 | | |
173 | 182 | | |
174 | | - | |
| 183 | + | |
175 | 184 | | |
176 | 185 | | |
177 | 186 | | |
| |||
0 commit comments