sof-mssql 2.0.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/dist/load.d.ts.map +1 -1
  2. package/dist/load.js +3 -0
  3. package/dist/load.js.map +1 -1
  4. package/dist/loader/connection.d.ts.map +1 -1
  5. package/dist/loader/connection.js +6 -0
  6. package/dist/loader/connection.js.map +1 -1
  7. package/dist/loader/types.d.ts +2 -0
  8. package/dist/loader/types.d.ts.map +1 -1
  9. package/dist/parser.d.ts +10 -1
  10. package/dist/parser.d.ts.map +1 -1
  11. package/dist/parser.js +35 -1
  12. package/dist/parser.js.map +1 -1
  13. package/dist/queryGenerator/index.d.ts +0 -3
  14. package/dist/queryGenerator/index.d.ts.map +1 -1
  15. package/dist/queryGenerator/index.js +1 -7
  16. package/dist/queryGenerator/index.js.map +1 -1
  17. package/dist/queryGenerator/treeWalker/aliasGenerator.d.ts +26 -0
  18. package/dist/queryGenerator/treeWalker/aliasGenerator.d.ts.map +1 -0
  19. package/dist/queryGenerator/treeWalker/aliasGenerator.js +31 -0
  20. package/dist/queryGenerator/treeWalker/aliasGenerator.js.map +1 -0
  21. package/dist/queryGenerator/treeWalker/classify.d.ts +19 -0
  22. package/dist/queryGenerator/treeWalker/classify.d.ts.map +1 -0
  23. package/dist/queryGenerator/treeWalker/classify.js +36 -0
  24. package/dist/queryGenerator/treeWalker/classify.js.map +1 -0
  25. package/dist/queryGenerator/treeWalker/compile.d.ts +29 -0
  26. package/dist/queryGenerator/treeWalker/compile.d.ts.map +1 -0
  27. package/dist/queryGenerator/treeWalker/compile.js +98 -0
  28. package/dist/queryGenerator/treeWalker/compile.js.map +1 -0
  29. package/dist/queryGenerator/treeWalker/cteTemplates.d.ts +50 -0
  30. package/dist/queryGenerator/treeWalker/cteTemplates.d.ts.map +1 -0
  31. package/dist/queryGenerator/treeWalker/cteTemplates.js +95 -0
  32. package/dist/queryGenerator/treeWalker/cteTemplates.js.map +1 -0
  33. package/dist/queryGenerator/treeWalker/index.d.ts +6 -0
  34. package/dist/queryGenerator/treeWalker/index.d.ts.map +1 -0
  35. package/dist/queryGenerator/treeWalker/index.js +9 -0
  36. package/dist/queryGenerator/treeWalker/index.js.map +1 -0
  37. package/dist/queryGenerator/treeWalker/mergeSiblings.d.ts +28 -0
  38. package/dist/queryGenerator/treeWalker/mergeSiblings.d.ts.map +1 -0
  39. package/dist/queryGenerator/treeWalker/mergeSiblings.js +54 -0
  40. package/dist/queryGenerator/treeWalker/mergeSiblings.js.map +1 -0
  41. package/dist/queryGenerator/treeWalker/operators/columnsOnly.d.ts +40 -0
  42. package/dist/queryGenerator/treeWalker/operators/columnsOnly.d.ts.map +1 -0
  43. package/dist/queryGenerator/treeWalker/operators/columnsOnly.js +56 -0
  44. package/dist/queryGenerator/treeWalker/operators/columnsOnly.js.map +1 -0
  45. package/dist/queryGenerator/treeWalker/operators/forEach.d.ts +45 -0
  46. package/dist/queryGenerator/treeWalker/operators/forEach.d.ts.map +1 -0
  47. package/dist/queryGenerator/treeWalker/operators/forEach.js +144 -0
  48. package/dist/queryGenerator/treeWalker/operators/forEach.js.map +1 -0
  49. package/dist/queryGenerator/treeWalker/operators/group.d.ts +35 -0
  50. package/dist/queryGenerator/treeWalker/operators/group.d.ts.map +1 -0
  51. package/dist/queryGenerator/treeWalker/operators/group.js +56 -0
  52. package/dist/queryGenerator/treeWalker/operators/group.js.map +1 -0
  53. package/dist/queryGenerator/treeWalker/operators/repeat.d.ts +45 -0
  54. package/dist/queryGenerator/treeWalker/operators/repeat.d.ts.map +1 -0
  55. package/dist/queryGenerator/treeWalker/operators/repeat.js +110 -0
  56. package/dist/queryGenerator/treeWalker/operators/repeat.js.map +1 -0
  57. package/dist/queryGenerator/treeWalker/operators/unionAll.d.ts +54 -0
  58. package/dist/queryGenerator/treeWalker/operators/unionAll.d.ts.map +1 -0
  59. package/dist/queryGenerator/treeWalker/operators/unionAll.js +121 -0
  60. package/dist/queryGenerator/treeWalker/operators/unionAll.js.map +1 -0
  61. package/dist/queryGenerator/treeWalker/render.d.ts +34 -0
  62. package/dist/queryGenerator/treeWalker/render.d.ts.map +1 -0
  63. package/dist/queryGenerator/treeWalker/render.js +41 -0
  64. package/dist/queryGenerator/treeWalker/render.js.map +1 -0
  65. package/dist/queryGenerator/treeWalker/types.d.ts +66 -0
  66. package/dist/queryGenerator/treeWalker/types.d.ts.map +1 -0
  67. package/dist/queryGenerator/treeWalker/types.js +14 -0
  68. package/dist/queryGenerator/treeWalker/types.js.map +1 -0
  69. package/dist/queryGenerator/treeWalker/walker.d.ts +36 -0
  70. package/dist/queryGenerator/treeWalker/walker.d.ts.map +1 -0
  71. package/dist/queryGenerator/treeWalker/walker.js +58 -0
  72. package/dist/queryGenerator/treeWalker/walker.js.map +1 -0
  73. package/dist/queryGenerator.d.ts +8 -34
  74. package/dist/queryGenerator.d.ts.map +1 -1
  75. package/dist/queryGenerator.js +16 -110
  76. package/dist/queryGenerator.js.map +1 -1
  77. package/dist/types.d.ts +2 -0
  78. package/dist/types.d.ts.map +1 -1
  79. package/package.json +1 -1
  80. package/dist/queryGenerator/ForEachProcessor.d.ts +0 -127
  81. package/dist/queryGenerator/ForEachProcessor.d.ts.map +0 -1
  82. package/dist/queryGenerator/ForEachProcessor.js +0 -351
  83. package/dist/queryGenerator/ForEachProcessor.js.map +0 -1
  84. package/dist/queryGenerator/SelectClauseBuilder.d.ts +0 -63
  85. package/dist/queryGenerator/SelectClauseBuilder.d.ts.map +0 -1
  86. package/dist/queryGenerator/SelectClauseBuilder.js +0 -196
  87. package/dist/queryGenerator/SelectClauseBuilder.js.map +0 -1
  88. package/dist/queryGenerator/SelectCombinationExpander.d.ts +0 -42
  89. package/dist/queryGenerator/SelectCombinationExpander.d.ts.map +0 -1
  90. package/dist/queryGenerator/SelectCombinationExpander.js +0 -95
  91. package/dist/queryGenerator/SelectCombinationExpander.js.map +0 -1
@@ -1,42 +0,0 @@
1
- /**
2
- * Expands unionAll combinations from ViewDefinition select elements.
3
- */
4
- import { ViewDefinitionSelect } from "../types.js";
5
- /**
6
- * Represents a specific combination of selects with their unionAll choices.
7
- */
8
- export interface SelectCombination {
9
- selects: ViewDefinitionSelect[];
10
- unionChoices: number[];
11
- }
12
- /**
13
- * Handles expansion of all possible unionAll combinations.
14
- */
15
- export declare class SelectCombinationExpander {
16
- /**
17
- * Expand all possible unionAll combinations from select elements.
18
- */
19
- expandCombinations(selects: ViewDefinitionSelect[]): SelectCombination[];
20
- /**
21
- * Expand combinations for a single select element.
22
- * Handles nested unionAll by recursively expanding them.
23
- */
24
- private expandSelectCombinations;
25
- /**
26
- * Expand unionAll options for a select.
27
- */
28
- private expandUnionAllOptions;
29
- /**
30
- * Expand nested unionAll within a unionAll option.
31
- */
32
- private expandNestedUnion;
33
- /**
34
- * Add a simple unionAll combination (no nested unionAll).
35
- */
36
- private addSimpleUnionCombination;
37
- /**
38
- * Add a combination for a select without unionAll.
39
- */
40
- private addNonUnionCombination;
41
- }
42
- //# sourceMappingURL=SelectCombinationExpander.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectCombinationExpander.d.ts","sourceRoot":"","sources":["../../src/queryGenerator/SelectCombinationExpander.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,oBAAoB,EAAE,CAAC;IAChC,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAED;;GAEG;AACH,qBAAa,yBAAyB;IACpC;;OAEG;IACH,kBAAkB,CAAC,OAAO,EAAE,oBAAoB,EAAE,GAAG,iBAAiB,EAAE;IAUxE;;;OAGG;IACH,OAAO,CAAC,wBAAwB;IAiBhC;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAyB7B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAwBzB;;OAEG;IACH,OAAO,CAAC,yBAAyB;IAajC;;OAEG;IACH,OAAO,CAAC,sBAAsB;CAW/B"}
@@ -1,95 +0,0 @@
1
- "use strict";
2
- /**
3
- * Expands unionAll combinations from ViewDefinition select elements.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.SelectCombinationExpander = void 0;
7
- /**
8
- * Handles expansion of all possible unionAll combinations.
9
- */
10
- class SelectCombinationExpander {
11
- /**
12
- * Expand all possible unionAll combinations from select elements.
13
- */
14
- expandCombinations(selects) {
15
- let combinations = [{ selects: [], unionChoices: [] }];
16
- for (const select of selects) {
17
- combinations = this.expandSelectCombinations(select, combinations);
18
- }
19
- return combinations;
20
- }
21
- /**
22
- * Expand combinations for a single select element.
23
- * Handles nested unionAll by recursively expanding them.
24
- */
25
- expandSelectCombinations(select, currentCombinations) {
26
- const newCombinations = [];
27
- for (const combination of currentCombinations) {
28
- if (select.unionAll && select.unionAll.length > 0) {
29
- this.expandUnionAllOptions(select, combination, newCombinations);
30
- }
31
- else {
32
- this.addNonUnionCombination(select, combination, newCombinations);
33
- }
34
- }
35
- return newCombinations;
36
- }
37
- /**
38
- * Expand unionAll options for a select.
39
- */
40
- expandUnionAllOptions(select, combination, newCombinations) {
41
- const unionAll = select.unionAll;
42
- if (!unionAll)
43
- return;
44
- for (let i = 0; i < unionAll.length; i++) {
45
- const unionOption = unionAll[i];
46
- if (unionOption.unionAll && unionOption.unionAll.length > 0) {
47
- this.expandNestedUnion(select, i, unionOption, combination, newCombinations);
48
- }
49
- else {
50
- this.addSimpleUnionCombination(select, i, combination, newCombinations);
51
- }
52
- }
53
- }
54
- /**
55
- * Expand nested unionAll within a unionAll option.
56
- */
57
- expandNestedUnion(select, unionIndex, unionOption, combination, newCombinations) {
58
- const nestedCombinations = this.expandSelectCombinations(unionOption, [
59
- { selects: [], unionChoices: [] },
60
- ]);
61
- for (const nestedComb of nestedCombinations) {
62
- const newCombination = {
63
- selects: [...combination.selects, select, ...nestedComb.selects],
64
- unionChoices: [
65
- ...combination.unionChoices,
66
- unionIndex,
67
- ...nestedComb.unionChoices,
68
- ],
69
- };
70
- newCombinations.push(newCombination);
71
- }
72
- }
73
- /**
74
- * Add a simple unionAll combination (no nested unionAll).
75
- */
76
- addSimpleUnionCombination(select, unionIndex, combination, newCombinations) {
77
- const newCombination = {
78
- selects: [...combination.selects, select],
79
- unionChoices: [...combination.unionChoices, unionIndex],
80
- };
81
- newCombinations.push(newCombination);
82
- }
83
- /**
84
- * Add a combination for a select without unionAll.
85
- */
86
- addNonUnionCombination(select, combination, newCombinations) {
87
- const newCombination = {
88
- selects: [...combination.selects, select],
89
- unionChoices: [...combination.unionChoices, -1],
90
- };
91
- newCombinations.push(newCombination);
92
- }
93
- }
94
- exports.SelectCombinationExpander = SelectCombinationExpander;
95
- //# sourceMappingURL=SelectCombinationExpander.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectCombinationExpander.js","sourceRoot":"","sources":["../../src/queryGenerator/SelectCombinationExpander.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAYH;;GAEG;AACH,MAAa,yBAAyB;IACpC;;OAEG;IACH,kBAAkB,CAAC,OAA+B;QAChD,IAAI,YAAY,GAAwB,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,CAAC;QAE5E,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;YAC7B,YAAY,GAAG,IAAI,CAAC,wBAAwB,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;QACrE,CAAC;QAED,OAAO,YAAY,CAAC;IACtB,CAAC;IAED;;;OAGG;IACK,wBAAwB,CAC9B,MAA4B,EAC5B,mBAAwC;QAExC,MAAM,eAAe,GAAwB,EAAE,CAAC;QAEhD,KAAK,MAAM,WAAW,IAAI,mBAAmB,EAAE,CAAC;YAC9C,IAAI,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAClD,IAAI,CA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