Commit 3833499
committed
refactor(driver): extract qc_prepare to consolidate sync/async duplication
Move eligibility checks and preparation logic from qc_lookup into new
qc_prepare method in _common.py. This eliminates ~15 lines of duplicated
logic between sync and async implementations.
Before: qc_lookup in both _common.py and _async.py contained identical
eligibility checking, cache lookup, rebinding, and statement building.
After: qc_prepare does all preparation work, qc_lookup becomes a thin
wrapper that calls qc_prepare then qc_execute.
Chapter 3 of driver-arch-cleanup_20260203 PRD.1 parent 61d1ff9 commit 3833499
2 files changed
+43
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
| 308 | + | |
319 | 309 | | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
325 | 313 | | |
326 | | - | |
327 | | - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
328 | 321 | | |
329 | 322 | | |
330 | 323 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1002 | 1002 | | |
1003 | 1003 | | |
1004 | 1004 | | |
1005 | | - | |
| 1005 | + | |
1006 | 1006 | | |
1007 | | - | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
1008 | 1018 | | |
1009 | 1019 | | |
1010 | 1020 | | |
1011 | 1021 | | |
| 1022 | + | |
1012 | 1023 | | |
1013 | 1024 | | |
1014 | 1025 | | |
| |||
1019 | 1030 | | |
1020 | 1031 | | |
1021 | 1032 | | |
| 1033 | + | |
1022 | 1034 | | |
1023 | 1035 | | |
1024 | 1036 | | |
1025 | 1037 | | |
1026 | 1038 | | |
1027 | | - | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
1028 | 1057 | | |
1029 | 1058 | | |
1030 | 1059 | | |
| |||
0 commit comments