data-finder-ts 0.1.0 → 0.1.3

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 (63) hide show
  1. package/dist/chunk-3SSWFES4.js +448 -0
  2. package/dist/chunk-3SSWFES4.js.map +1 -0
  3. package/dist/chunk-5K2Z3YDY.js +393 -0
  4. package/dist/chunk-5K2Z3YDY.js.map +1 -0
  5. package/dist/chunk-6QTCGJWX.js +98 -0
  6. package/dist/chunk-6QTCGJWX.js.map +1 -0
  7. package/dist/chunk-DFYZVBII.js +652 -0
  8. package/dist/chunk-DFYZVBII.js.map +1 -0
  9. package/dist/chunk-EYXBYV2X.js +90 -0
  10. package/dist/chunk-EYXBYV2X.js.map +1 -0
  11. package/dist/chunk-FLEIUDZZ.js +14 -0
  12. package/dist/chunk-FLEIUDZZ.js.map +1 -0
  13. package/dist/chunk-V647VNMY.js +135 -0
  14. package/dist/chunk-V647VNMY.js.map +1 -0
  15. package/dist/datafinder/attribute.cjs +269 -0
  16. package/dist/datafinder/attribute.cjs.map +1 -0
  17. package/dist/datafinder/attribute.d.cts +45 -0
  18. package/dist/datafinder/attribute.d.ts +45 -0
  19. package/dist/datafinder/attribute.js +8 -0
  20. package/dist/datafinder/attribute.js.map +1 -0
  21. package/dist/datafinder/finder-registry.cjs +39 -0
  22. package/dist/datafinder/finder-registry.cjs.map +1 -0
  23. package/dist/datafinder/finder-registry.d.cts +4 -0
  24. package/dist/datafinder/finder-registry.d.ts +4 -0
  25. package/dist/datafinder/finder-registry.js +9 -0
  26. package/dist/datafinder/finder-registry.js.map +1 -0
  27. package/dist/datafinder/runner.cjs +1346 -0
  28. package/dist/datafinder/runner.cjs.map +1 -0
  29. package/dist/datafinder/runner.d.cts +33 -0
  30. package/dist/datafinder/runner.d.ts +33 -0
  31. package/dist/datafinder/runner.js +20 -0
  32. package/dist/datafinder/runner.js.map +1 -0
  33. package/dist/datafinder/sql-generator.cjs +1261 -0
  34. package/dist/datafinder/sql-generator.cjs.map +1 -0
  35. package/dist/datafinder/sql-generator.d.cts +17 -0
  36. package/dist/datafinder/sql-generator.d.ts +17 -0
  37. package/dist/datafinder/sql-generator.js +17 -0
  38. package/dist/datafinder/sql-generator.js.map +1 -0
  39. package/dist/datafinder/typed-attributes.cjs +751 -0
  40. package/dist/datafinder/typed-attributes.cjs.map +1 -0
  41. package/dist/datafinder/typed-attributes.d.cts +135 -0
  42. package/dist/datafinder/typed-attributes.d.ts +135 -0
  43. package/dist/datafinder/typed-attributes.js +25 -0
  44. package/dist/datafinder/typed-attributes.js.map +1 -0
  45. package/dist/index.cjs +1822 -0
  46. package/dist/index.cjs.map +1 -0
  47. package/dist/index.d.cts +27 -0
  48. package/dist/index.d.ts +27 -0
  49. package/dist/index.js +159 -0
  50. package/dist/index.js.map +1 -0
  51. package/dist/model/milestoning.cjs +145 -0
  52. package/dist/model/milestoning.cjs.map +1 -0
  53. package/dist/model/milestoning.d.cts +40 -0
  54. package/dist/model/milestoning.d.ts +40 -0
  55. package/dist/model/milestoning.js +18 -0
  56. package/dist/model/milestoning.js.map +1 -0
  57. package/dist/model/relational.cjs +514 -0
  58. package/dist/model/relational.cjs.map +1 -0
  59. package/dist/model/relational.d.cts +246 -0
  60. package/dist/model/relational.d.ts +246 -0
  61. package/dist/model/relational.js +91 -0
  62. package/dist/model/relational.js.map +1 -0
  63. package/package.json +3 -3
@@ -0,0 +1,246 @@
1
+ declare enum ComparisonOperator {
2
+ EQUAL = "EQUAL",
3
+ NOT_EQUAL = "NOT_EQUAL",
4
+ LESS_THAN = "LESS_THAN",
5
+ GREATER_THAN = "GREATER_THAN",
6
+ LESS_THAN_OR_EQUAL_TO = "LESS_THAN_OR_EQUAL_TO",
7
+ GREATER_THAN_OR_EQUAL_TO = "GREATER_THAN_OR_EQUAL_TO",
8
+ LIKE = "LIKE",
9
+ NOT_LIKE = "NOT_LIKE"
10
+ }
11
+ declare enum LogicalOperator {
12
+ AND = "AND",
13
+ OR = "OR"
14
+ }
15
+ declare enum AggregateOperator {
16
+ COUNT = "COUNT",
17
+ SUM = "SUM",
18
+ MIN = "MIN",
19
+ MAX = "MAX",
20
+ AVERAGE = "AVERAGE"
21
+ }
22
+ declare enum ScalarFunction {
23
+ ABS = "ABS",
24
+ CEILING = "CEILING",
25
+ FLOOR = "FLOOR",
26
+ MOD = "MOD",
27
+ POWER = "POWER",
28
+ SQRT = "SQRT",
29
+ ROUND = "ROUND",
30
+ UPPER = "UPPER",
31
+ LOWER = "LOWER",
32
+ TRIM = "TRIM",
33
+ LTRIM = "LTRIM",
34
+ RTRIM = "RTRIM",
35
+ LENGTH = "LENGTH",
36
+ REVERSE = "REVERSE",
37
+ LEFT = "LEFT",
38
+ RIGHT = "RIGHT",
39
+ REPEAT = "REPEAT",
40
+ REPLACE = "REPLACE",
41
+ SUBSTRING = "SUBSTRING"
42
+ }
43
+ declare enum DatePart {
44
+ YEAR = "YEAR",
45
+ MONTH = "MONTH",
46
+ DAY = "DAY",
47
+ HOUR = "HOUR",
48
+ MINUTE = "MINUTE",
49
+ SECOND = "SECOND",
50
+ QUARTER = "QUARTER",
51
+ WEEK = "WEEK",
52
+ DOW = "DOW"
53
+ }
54
+ declare enum SortDirection {
55
+ ASC = "ASC",
56
+ DESC = "DESC"
57
+ }
58
+ declare abstract class RelationalOperationElement {
59
+ }
60
+ declare abstract class Operation extends RelationalOperationElement {
61
+ andOp(other: RelationalOperationElement): Operation;
62
+ }
63
+ declare class NoOperation extends Operation {
64
+ andOp(other: RelationalOperationElement): Operation;
65
+ }
66
+ declare abstract class ConstantOperation extends RelationalOperationElement {
67
+ }
68
+ declare class IntegerConstantOperation extends ConstantOperation {
69
+ readonly value: number;
70
+ constructor(value: number);
71
+ }
72
+ declare class FloatConstantOperation extends ConstantOperation {
73
+ readonly value: number;
74
+ constructor(value: number);
75
+ }
76
+ declare class StringConstantOperation extends ConstantOperation {
77
+ readonly value: string;
78
+ constructor(value: string);
79
+ }
80
+ declare class DateConstantOperation extends ConstantOperation {
81
+ readonly value: Date;
82
+ constructor(value: Date);
83
+ }
84
+ declare class DateTimeConstantOperation extends ConstantOperation {
85
+ readonly value: Date;
86
+ constructor(value: Date);
87
+ }
88
+ declare class DecimalConstantOperation extends ConstantOperation {
89
+ readonly value: number;
90
+ constructor(value: number);
91
+ }
92
+ declare class BooleanConstantOperation extends ConstantOperation {
93
+ readonly value: boolean;
94
+ constructor(value: boolean);
95
+ }
96
+ declare abstract class UnaryOperation extends Operation {
97
+ readonly element: RelationalOperationElement;
98
+ constructor(element: RelationalOperationElement);
99
+ }
100
+ declare abstract class BinaryOperation extends Operation {
101
+ readonly left: RelationalOperationElement;
102
+ readonly right: RelationalOperationElement;
103
+ constructor(left: RelationalOperationElement, right: RelationalOperationElement);
104
+ }
105
+ declare class IsNullOperation extends UnaryOperation {
106
+ }
107
+ declare class IsNotNullOperation extends UnaryOperation {
108
+ }
109
+ declare class ComparisonOperation extends BinaryOperation {
110
+ readonly operator: ComparisonOperator;
111
+ constructor(left: RelationalOperationElement, operator: ComparisonOperator, right: RelationalOperationElement);
112
+ }
113
+ declare class LogicalOperation extends BinaryOperation {
114
+ readonly operator: LogicalOperator;
115
+ constructor(left: RelationalOperationElement, operator: LogicalOperator, right: RelationalOperationElement);
116
+ }
117
+ declare class WindowSpecification {
118
+ readonly partitionBy: RelationalOperationElement[];
119
+ readonly orderBy: SortOperation[];
120
+ constructor(partitionBy?: RelationalOperationElement[], orderBy?: SortOperation[]);
121
+ }
122
+ declare class AggregateOperation extends UnaryOperation {
123
+ readonly operator: AggregateOperator;
124
+ readonly displayName?: string | undefined;
125
+ readonly window?: WindowSpecification | undefined;
126
+ constructor(element: RelationalOperationElement, operator: AggregateOperator, displayName?: string | undefined, window?: WindowSpecification | undefined);
127
+ over(partitionBy?: RelationalOperationElement[], orderBy?: SortOperation[]): AggregateOperation;
128
+ }
129
+ declare enum WindowFunction {
130
+ ROW_NUMBER = "ROW_NUMBER",
131
+ RANK = "RANK",
132
+ DENSE_RANK = "DENSE_RANK",
133
+ NTILE = "NTILE",
134
+ LAG = "LAG",
135
+ LEAD = "LEAD",
136
+ FIRST_VALUE = "FIRST_VALUE",
137
+ LAST_VALUE = "LAST_VALUE",
138
+ CUME_DIST = "CUME_DIST",
139
+ PERCENT_RANK = "PERCENT_RANK"
140
+ }
141
+ declare class WindowFunctionOperation extends UnaryOperation {
142
+ readonly func: WindowFunction;
143
+ readonly displayName?: string | undefined;
144
+ readonly secondArg?: number | undefined;
145
+ readonly extraArgs: (string | number)[];
146
+ readonly window?: WindowSpecification | undefined;
147
+ constructor(element: RelationalOperationElement | null, func: WindowFunction, displayName?: string | undefined, secondArg?: number | undefined, extraArgs?: (string | number)[], window?: WindowSpecification | undefined);
148
+ over(partitionBy?: RelationalOperationElement[], orderBy?: SortOperation[]): WindowFunctionOperation;
149
+ }
150
+ declare class ScalarFunctionOperation extends UnaryOperation {
151
+ readonly func: ScalarFunction;
152
+ readonly displayName?: string | undefined;
153
+ readonly secondArg?: number | undefined;
154
+ readonly extraArgs: (string | number)[];
155
+ constructor(element: RelationalOperationElement, func: ScalarFunction, displayName?: string | undefined, secondArg?: number | undefined, extraArgs?: (string | number)[]);
156
+ }
157
+ declare class DateExtractOperation extends UnaryOperation {
158
+ readonly part: DatePart;
159
+ readonly displayName?: string | undefined;
160
+ constructor(element: RelationalOperationElement, part: DatePart, displayName?: string | undefined);
161
+ }
162
+ declare class DateArithmeticOperation extends UnaryOperation {
163
+ readonly n: number;
164
+ readonly unit: DatePart;
165
+ readonly isAdd: boolean;
166
+ readonly displayName?: string | undefined;
167
+ constructor(element: RelationalOperationElement, n: number, unit: DatePart, isAdd?: boolean, displayName?: string | undefined);
168
+ }
169
+ declare class DateDiffOperation extends UnaryOperation {
170
+ readonly other: Date;
171
+ readonly unit: DatePart;
172
+ readonly displayName?: string | undefined;
173
+ constructor(element: RelationalOperationElement, other: Date, unit: DatePart, displayName?: string | undefined);
174
+ }
175
+ declare class Column extends RelationalOperationElement {
176
+ readonly name: string;
177
+ readonly type: string;
178
+ readonly owner?: string | undefined;
179
+ readonly primaryKey: boolean;
180
+ table?: Table;
181
+ constructor(name: string, type: string, owner?: string | undefined, primaryKey?: boolean);
182
+ }
183
+ declare class ForeignKey {
184
+ readonly column: Column;
185
+ readonly references: Column;
186
+ constructor(column: Column, references: Column);
187
+ }
188
+ declare abstract class DataStore {
189
+ readonly name: string;
190
+ readonly schemas: Schema[];
191
+ constructor(name: string);
192
+ abstract namespace(schemaName: string): string;
193
+ }
194
+ declare class Database extends DataStore {
195
+ readonly location?: string | undefined;
196
+ constructor(name: string, location?: string | undefined);
197
+ namespace(schemaName: string): string;
198
+ }
199
+ declare class DataCatalog extends DataStore {
200
+ constructor(name: string);
201
+ namespace(schemaName: string): string;
202
+ }
203
+ declare class Schema {
204
+ readonly name: string;
205
+ readonly datastore?: DataStore | undefined;
206
+ readonly tables: Table[];
207
+ constructor(name: string, datastore?: DataStore | undefined);
208
+ }
209
+ declare class Table {
210
+ readonly name: string;
211
+ readonly schema?: Schema | undefined;
212
+ private readonly _columnsByName;
213
+ readonly foreignKeys: ForeignKey[];
214
+ constructor(name: string, columns: Column[], schema?: Schema | undefined);
215
+ get columns(): Column[];
216
+ get qualifiedName(): string;
217
+ }
218
+ declare class JoinOperation {
219
+ readonly name: string;
220
+ readonly target: Table;
221
+ readonly left: Column;
222
+ readonly right: Column;
223
+ filter?: RelationalOperationElement;
224
+ constructor(name: string, target: Table, left: Column, right: Column, filter?: RelationalOperationElement);
225
+ }
226
+ declare class JoinTreeNodeOperation {
227
+ readonly join: JoinOperation;
228
+ readonly parent?: JoinTreeNodeOperation | undefined;
229
+ constructor(join: JoinOperation, parent?: JoinTreeNodeOperation | undefined);
230
+ }
231
+ declare class ColumnWithJoin extends RelationalOperationElement {
232
+ readonly column: Column;
233
+ readonly parent?: JoinTreeNodeOperation | undefined;
234
+ constructor(column: Column, parent?: JoinTreeNodeOperation | undefined);
235
+ }
236
+ declare class SortOperation {
237
+ readonly column: ColumnWithJoin;
238
+ readonly direction: SortDirection;
239
+ constructor(column: ColumnWithJoin, direction: SortDirection);
240
+ }
241
+ declare class CountAllOperation extends RelationalOperationElement {
242
+ readonly table: string;
243
+ constructor(table: string);
244
+ }
245
+
246
+ export { AggregateOperation, AggregateOperator, BinaryOperation, BooleanConstantOperation, Column, ColumnWithJoin, ComparisonOperation, ComparisonOperator, ConstantOperation, CountAllOperation, DataCatalog, DataStore, Database, DateArithmeticOperation, DateConstantOperation, DateDiffOperation, DateExtractOperation, DatePart, DateTimeConstantOperation, DecimalConstantOperation, FloatConstantOperation, ForeignKey, IntegerConstantOperation, IsNotNullOperation, IsNullOperation, JoinOperation, JoinTreeNodeOperation, LogicalOperation, LogicalOperator, NoOperation, Operation, RelationalOperationElement, ScalarFunction, ScalarFunctionOperation, Schema, SortDirection, SortOperation, StringConstantOperation, Table, UnaryOperation, WindowFunction, WindowFunctionOperation, WindowSpecification };
@@ -0,0 +1,246 @@
1
+ declare enum ComparisonOperator {
2
+ EQUAL = "EQUAL",
3
+ NOT_EQUAL = "NOT_EQUAL",
4
+ LESS_THAN = "LESS_THAN",
5
+ GREATER_THAN = "GREATER_THAN",
6
+ LESS_THAN_OR_EQUAL_TO = "LESS_THAN_OR_EQUAL_TO",
7
+ GREATER_THAN_OR_EQUAL_TO = "GREATER_THAN_OR_EQUAL_TO",
8
+ LIKE = "LIKE",
9
+ NOT_LIKE = "NOT_LIKE"
10
+ }
11
+ declare enum LogicalOperator {
12
+ AND = "AND",
13
+ OR = "OR"
14
+ }
15
+ declare enum AggregateOperator {
16
+ COUNT = "COUNT",
17
+ SUM = "SUM",
18
+ MIN = "MIN",
19
+ MAX = "MAX",
20
+ AVERAGE = "AVERAGE"
21
+ }
22
+ declare enum ScalarFunction {
23
+ ABS = "ABS",
24
+ CEILING = "CEILING",
25
+ FLOOR = "FLOOR",
26
+ MOD = "MOD",
27
+ POWER = "POWER",
28
+ SQRT = "SQRT",
29
+ ROUND = "ROUND",
30
+ UPPER = "UPPER",
31
+ LOWER = "LOWER",
32
+ TRIM = "TRIM",
33
+ LTRIM = "LTRIM",
34
+ RTRIM = "RTRIM",
35
+ LENGTH = "LENGTH",
36
+ REVERSE = "REVERSE",
37
+ LEFT = "LEFT",
38
+ RIGHT = "RIGHT",
39
+ REPEAT = "REPEAT",
40
+ REPLACE = "REPLACE",
41
+ SUBSTRING = "SUBSTRING"
42
+ }
43
+ declare enum DatePart {
44
+ YEAR = "YEAR",
45
+ MONTH = "MONTH",
46
+ DAY = "DAY",
47
+ HOUR = "HOUR",
48
+ MINUTE = "MINUTE",
49
+ SECOND = "SECOND",
50
+ QUARTER = "QUARTER",
51
+ WEEK = "WEEK",
52
+ DOW = "DOW"
53
+ }
54
+ declare enum SortDirection {
55
+ ASC = "ASC",
56
+ DESC = "DESC"
57
+ }
58
+ declare abstract class RelationalOperationElement {
59
+ }
60
+ declare abstract class Operation extends RelationalOperationElement {
61
+ andOp(other: RelationalOperationElement): Operation;
62
+ }
63
+ declare class NoOperation extends Operation {
64
+ andOp(other: RelationalOperationElement): Operation;
65
+ }
66
+ declare abstract class ConstantOperation extends RelationalOperationElement {
67
+ }
68
+ declare class IntegerConstantOperation extends ConstantOperation {
69
+ readonly value: number;
70
+ constructor(value: number);
71
+ }
72
+ declare class FloatConstantOperation extends ConstantOperation {
73
+ readonly value: number;
74
+ constructor(value: number);
75
+ }
76
+ declare class StringConstantOperation extends ConstantOperation {
77
+ readonly value: string;
78
+ constructor(value: string);
79
+ }
80
+ declare class DateConstantOperation extends ConstantOperation {
81
+ readonly value: Date;
82
+ constructor(value: Date);
83
+ }
84
+ declare class DateTimeConstantOperation extends ConstantOperation {
85
+ readonly value: Date;
86
+ constructor(value: Date);
87
+ }
88
+ declare class DecimalConstantOperation extends ConstantOperation {
89
+ readonly value: number;
90
+ constructor(value: number);
91
+ }
92
+ declare class BooleanConstantOperation extends ConstantOperation {
93
+ readonly value: boolean;
94
+ constructor(value: boolean);
95
+ }
96
+ declare abstract class UnaryOperation extends Operation {
97
+ readonly element: RelationalOperationElement;
98
+ constructor(element: RelationalOperationElement);
99
+ }
100
+ declare abstract class BinaryOperation extends Operation {
101
+ readonly left: RelationalOperationElement;
102
+ readonly right: RelationalOperationElement;
103
+ constructor(left: RelationalOperationElement, right: RelationalOperationElement);
104
+ }
105
+ declare class IsNullOperation extends UnaryOperation {
106
+ }
107
+ declare class IsNotNullOperation extends UnaryOperation {
108
+ }
109
+ declare class ComparisonOperation extends BinaryOperation {
110
+ readonly operator: ComparisonOperator;
111
+ constructor(left: RelationalOperationElement, operator: ComparisonOperator, right: RelationalOperationElement);
112
+ }
113
+ declare class LogicalOperation extends BinaryOperation {
114
+ readonly operator: LogicalOperator;
115
+ constructor(left: RelationalOperationElement, operator: LogicalOperator, right: RelationalOperationElement);
116
+ }
117
+ declare class WindowSpecification {
118
+ readonly partitionBy: RelationalOperationElement[];
119
+ readonly orderBy: SortOperation[];
120
+ constructor(partitionBy?: RelationalOperationElement[], orderBy?: SortOperation[]);
121
+ }
122
+ declare class AggregateOperation extends UnaryOperation {
123
+ readonly operator: AggregateOperator;
124
+ readonly displayName?: string | undefined;
125
+ readonly window?: WindowSpecification | undefined;
126
+ constructor(element: RelationalOperationElement, operator: AggregateOperator, displayName?: string | undefined, window?: WindowSpecification | undefined);
127
+ over(partitionBy?: RelationalOperationElement[], orderBy?: SortOperation[]): AggregateOperation;
128
+ }
129
+ declare enum WindowFunction {
130
+ ROW_NUMBER = "ROW_NUMBER",
131
+ RANK = "RANK",
132
+ DENSE_RANK = "DENSE_RANK",
133
+ NTILE = "NTILE",
134
+ LAG = "LAG",
135
+ LEAD = "LEAD",
136
+ FIRST_VALUE = "FIRST_VALUE",
137
+ LAST_VALUE = "LAST_VALUE",
138
+ CUME_DIST = "CUME_DIST",
139
+ PERCENT_RANK = "PERCENT_RANK"
140
+ }
141
+ declare class WindowFunctionOperation extends UnaryOperation {
142
+ readonly func: WindowFunction;
143
+ readonly displayName?: string | undefined;
144
+ readonly secondArg?: number | undefined;
145
+ readonly extraArgs: (string | number)[];
146
+ readonly window?: WindowSpecification | undefined;
147
+ constructor(element: RelationalOperationElement | null, func: WindowFunction, displayName?: string | undefined, secondArg?: number | undefined, extraArgs?: (string | number)[], window?: WindowSpecification | undefined);
148
+ over(partitionBy?: RelationalOperationElement[], orderBy?: SortOperation[]): WindowFunctionOperation;
149
+ }
150
+ declare class ScalarFunctionOperation extends UnaryOperation {
151
+ readonly func: ScalarFunction;
152
+ readonly displayName?: string | undefined;
153
+ readonly secondArg?: number | undefined;
154
+ readonly extraArgs: (string | number)[];
155
+ constructor(element: RelationalOperationElement, func: ScalarFunction, displayName?: string | undefined, secondArg?: number | undefined, extraArgs?: (string | number)[]);
156
+ }
157
+ declare class DateExtractOperation extends UnaryOperation {
158
+ readonly part: DatePart;
159
+ readonly displayName?: string | undefined;
160
+ constructor(element: RelationalOperationElement, part: DatePart, displayName?: string | undefined);
161
+ }
162
+ declare class DateArithmeticOperation extends UnaryOperation {
163
+ readonly n: number;
164
+ readonly unit: DatePart;
165
+ readonly isAdd: boolean;
166
+ readonly displayName?: string | undefined;
167
+ constructor(element: RelationalOperationElement, n: number, unit: DatePart, isAdd?: boolean, displayName?: string | undefined);
168
+ }
169
+ declare class DateDiffOperation extends UnaryOperation {
170
+ readonly other: Date;
171
+ readonly unit: DatePart;
172
+ readonly displayName?: string | undefined;
173
+ constructor(element: RelationalOperationElement, other: Date, unit: DatePart, displayName?: string | undefined);
174
+ }
175
+ declare class Column extends RelationalOperationElement {
176
+ readonly name: string;
177
+ readonly type: string;
178
+ readonly owner?: string | undefined;
179
+ readonly primaryKey: boolean;
180
+ table?: Table;
181
+ constructor(name: string, type: string, owner?: string | undefined, primaryKey?: boolean);
182
+ }
183
+ declare class ForeignKey {
184
+ readonly column: Column;
185
+ readonly references: Column;
186
+ constructor(column: Column, references: Column);
187
+ }
188
+ declare abstract class DataStore {
189
+ readonly name: string;
190
+ readonly schemas: Schema[];
191
+ constructor(name: string);
192
+ abstract namespace(schemaName: string): string;
193
+ }
194
+ declare class Database extends DataStore {
195
+ readonly location?: string | undefined;
196
+ constructor(name: string, location?: string | undefined);
197
+ namespace(schemaName: string): string;
198
+ }
199
+ declare class DataCatalog extends DataStore {
200
+ constructor(name: string);
201
+ namespace(schemaName: string): string;
202
+ }
203
+ declare class Schema {
204
+ readonly name: string;
205
+ readonly datastore?: DataStore | undefined;
206
+ readonly tables: Table[];
207
+ constructor(name: string, datastore?: DataStore | undefined);
208
+ }
209
+ declare class Table {
210
+ readonly name: string;
211
+ readonly schema?: Schema | undefined;
212
+ private readonly _columnsByName;
213
+ readonly foreignKeys: ForeignKey[];
214
+ constructor(name: string, columns: Column[], schema?: Schema | undefined);
215
+ get columns(): Column[];
216
+ get qualifiedName(): string;
217
+ }
218
+ declare class JoinOperation {
219
+ readonly name: string;
220
+ readonly target: Table;
221
+ readonly left: Column;
222
+ readonly right: Column;
223
+ filter?: RelationalOperationElement;
224
+ constructor(name: string, target: Table, left: Column, right: Column, filter?: RelationalOperationElement);
225
+ }
226
+ declare class JoinTreeNodeOperation {
227
+ readonly join: JoinOperation;
228
+ readonly parent?: JoinTreeNodeOperation | undefined;
229
+ constructor(join: JoinOperation, parent?: JoinTreeNodeOperation | undefined);
230
+ }
231
+ declare class ColumnWithJoin extends RelationalOperationElement {
232
+ readonly column: Column;
233
+ readonly parent?: JoinTreeNodeOperation | undefined;
234
+ constructor(column: Column, parent?: JoinTreeNodeOperation | undefined);
235
+ }
236
+ declare class SortOperation {
237
+ readonly column: ColumnWithJoin;
238
+ readonly direction: SortDirection;
239
+ constructor(column: ColumnWithJoin, direction: SortDirection);
240
+ }
241
+ declare class CountAllOperation extends RelationalOperationElement {
242
+ readonly table: string;
243
+ constructor(table: string);
244
+ }
245
+
246
+ export { AggregateOperation, AggregateOperator, BinaryOperation, BooleanConstantOperation, Column, ColumnWithJoin, ComparisonOperation, ComparisonOperator, ConstantOperation, CountAllOperation, DataCatalog, DataStore, Database, DateArithmeticOperation, DateConstantOperation, DateDiffOperation, DateExtractOperation, DatePart, DateTimeConstantOperation, DecimalConstantOperation, FloatConstantOperation, ForeignKey, IntegerConstantOperation, IsNotNullOperation, IsNullOperation, JoinOperation, JoinTreeNodeOperation, LogicalOperation, LogicalOperator, NoOperation, Operation, RelationalOperationElement, ScalarFunction, ScalarFunctionOperation, Schema, SortDirection, SortOperation, StringConstantOperation, Table, UnaryOperation, WindowFunction, WindowFunctionOperation, WindowSpecification };
@@ -0,0 +1,91 @@
1
+ import {
2
+ AggregateOperation,
3
+ AggregateOperator,
4
+ BinaryOperation,
5
+ BooleanConstantOperation,
6
+ Column,
7
+ ColumnWithJoin,
8
+ ComparisonOperation,
9
+ ComparisonOperator,
10
+ ConstantOperation,
11
+ CountAllOperation,
12
+ DataCatalog,
13
+ DataStore,
14
+ Database,
15
+ DateArithmeticOperation,
16
+ DateConstantOperation,
17
+ DateDiffOperation,
18
+ DateExtractOperation,
19
+ DatePart,
20
+ DateTimeConstantOperation,
21
+ DecimalConstantOperation,
22
+ FloatConstantOperation,
23
+ ForeignKey,
24
+ IntegerConstantOperation,
25
+ IsNotNullOperation,
26
+ IsNullOperation,
27
+ JoinOperation,
28
+ JoinTreeNodeOperation,
29
+ LogicalOperation,
30
+ LogicalOperator,
31
+ NoOperation,
32
+ Operation,
33
+ RelationalOperationElement,
34
+ ScalarFunction,
35
+ ScalarFunctionOperation,
36
+ Schema,
37
+ SortDirection,
38
+ SortOperation,
39
+ StringConstantOperation,
40
+ Table,
41
+ UnaryOperation,
42
+ WindowFunction,
43
+ WindowFunctionOperation,
44
+ WindowSpecification
45
+ } from "../chunk-3SSWFES4.js";
46
+ export {
47
+ AggregateOperation,
48
+ AggregateOperator,
49
+ BinaryOperation,
50
+ BooleanConstantOperation,
51
+ Column,
52
+ ColumnWithJoin,
53
+ ComparisonOperation,
54
+ ComparisonOperator,
55
+ ConstantOperation,
56
+ CountAllOperation,
57
+ DataCatalog,
58
+ DataStore,
59
+ Database,
60
+ DateArithmeticOperation,
61
+ DateConstantOperation,
62
+ DateDiffOperation,
63
+ DateExtractOperation,
64
+ DatePart,
65
+ DateTimeConstantOperation,
66
+ DecimalConstantOperation,
67
+ FloatConstantOperation,
68
+ ForeignKey,
69
+ IntegerConstantOperation,
70
+ IsNotNullOperation,
71
+ IsNullOperation,
72
+ JoinOperation,
73
+ JoinTreeNodeOperation,
74
+ LogicalOperation,
75
+ LogicalOperator,
76
+ NoOperation,
77
+ Operation,
78
+ RelationalOperationElement,
79
+ ScalarFunction,
80
+ ScalarFunctionOperation,
81
+ Schema,
82
+ SortDirection,
83
+ SortOperation,
84
+ StringConstantOperation,
85
+ Table,
86
+ UnaryOperation,
87
+ WindowFunction,
88
+ WindowFunctionOperation,
89
+ WindowSpecification
90
+ };
91
+ //# sourceMappingURL=relational.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "data-finder-ts",
3
- "version": "0.1.0",
3
+ "version": "0.1.3",
4
4
  "description": "TypeScript runtime library for data-finder generated finders",
5
5
  "keywords": [
6
6
  "data",
@@ -82,14 +82,14 @@
82
82
  },
83
83
  "devDependencies": {
84
84
  "@duckdb/node-api": "^1.5.3-r.1",
85
- "@types/node": "^20.19.41",
85
+ "@types/node": "^24.13.2",
86
86
  "graphql": "^16.14.0",
87
87
  "tsup": "^8.5.1",
88
88
  "typescript": "^5.9.3",
89
89
  "vitest": "^2.1.9"
90
90
  },
91
91
  "engines": {
92
- "node": ">=20.0.0"
92
+ "node": ">=24.0.0"
93
93
  },
94
94
  "module": "./dist/index.js"
95
95
  }