Commit 9554b1a
Ensure proper cleanup of the database connection in
* Ensure proper cleanup of the database connection in `createSchema` method in `MySQLRecordManager`.
* Update MySQLrecordManager.ts
* Refactor createSchema to optimize dataSource usage
Refactor createSchema method to avoid duplicate dataSource retrieval.
* Refactor createSchema method for efficiency
Refactor createSchema to avoid redundant dataSource retrieval.
---------
Co-authored-by: Henry Heng <henryheng@flowiseai.com>createSchema (#5315)1 parent ac565b8 commit 9554b1a
File tree
3 files changed
+9
-3
lines changed- packages/components/nodes/recordmanager
- MySQLRecordManager
- PostgresRecordManager
- SQLiteRecordManager
3 files changed
+9
-3
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| 208 | + | |
208 | 209 | | |
209 | | - | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| 244 | + | |
| 245 | + | |
244 | 246 | | |
245 | 247 | | |
246 | 248 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| 225 | + | |
225 | 226 | | |
226 | | - | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| 254 | + | |
| 255 | + | |
254 | 256 | | |
255 | 257 | | |
256 | 258 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
182 | 183 | | |
183 | | - | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| 211 | + | |
| 212 | + | |
211 | 213 | | |
212 | 214 | | |
213 | 215 | | |
| |||
0 commit comments