Commit d7255e3
committed
Refactor SDL generation and type handling
- Moved core type extraction and input type checking to a new `schema_helpers` module for better organization and reusability.
- Removed the `TypeService` class, consolidating its functionality into the `TypeConverter` class.
- Updated SDLGenerator to utilize the new helper functions for core type extraction and input type checking.
- Added comprehensive tests for the new helper functions and updated existing tests to ensure compatibility with the refactored code.
- Improved type handling in the `type_utils` module and added tests for various type utilities.1 parent bcddf04 commit d7255e3
8 files changed
Lines changed: 946 additions & 377 deletions
File tree
- src/sqlmodel_graphql
- utils
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
447 | 448 | | |
448 | 449 | | |
449 | 450 | | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | 451 | | |
456 | 452 | | |
457 | 453 | | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | 454 | | |
489 | 455 | | |
490 | 456 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | 20 | | |
67 | 21 | | |
68 | 22 | | |
| |||
100 | 54 | | |
101 | 55 | | |
102 | 56 | | |
103 | | - | |
| 57 | + | |
104 | 58 | | |
105 | 59 | | |
106 | 60 | | |
| |||
194 | 148 | | |
195 | 149 | | |
196 | 150 | | |
197 | | - | |
| 151 | + | |
198 | 152 | | |
199 | 153 | | |
200 | | - | |
| 154 | + | |
201 | 155 | | |
202 | 156 | | |
203 | 157 | | |
| |||
297 | 251 | | |
298 | 252 | | |
299 | 253 | | |
300 | | - | |
| 254 | + | |
301 | 255 | | |
302 | 256 | | |
303 | 257 | | |
| |||
This file was deleted.
0 commit comments