@hypequery/clickhouse 1.2.5 → 1.2.7
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.
- package/dist/cli/index.d.ts +1 -1
- package/dist/core/connection.d.ts.map +1 -1
- package/dist/core/connection.js +3 -3
- package/dist/core/cross-filter.d.ts +2 -1
- package/dist/core/cross-filter.d.ts.map +1 -1
- package/dist/core/cross-filter.js +4 -1
- package/dist/core/features/aggregations.d.ts +22 -22
- package/dist/core/features/aggregations.d.ts.map +1 -1
- package/dist/core/features/aggregations.js +1 -0
- package/dist/core/features/analytics.d.ts +11 -11
- package/dist/core/features/analytics.d.ts.map +1 -1
- package/dist/core/features/analytics.js +1 -0
- package/dist/core/features/cross-filtering.d.ts +4 -4
- package/dist/core/features/cross-filtering.d.ts.map +1 -1
- package/dist/core/features/cross-filtering.js +1 -0
- package/dist/core/features/executor.d.ts +2 -2
- package/dist/core/features/executor.d.ts.map +1 -1
- package/dist/core/features/executor.js +4 -3
- package/dist/core/features/filtering.d.ts +14 -14
- package/dist/core/features/filtering.d.ts.map +1 -1
- package/dist/core/features/filtering.js +1 -0
- package/dist/core/features/joins.d.ts +6 -6
- package/dist/core/features/joins.d.ts.map +1 -1
- package/dist/core/features/joins.js +1 -0
- package/dist/core/features/pagination.d.ts +2 -2
- package/dist/core/features/pagination.d.ts.map +1 -1
- package/dist/core/features/pagination.js +3 -1
- package/dist/core/features/query-modifiers.d.ts +14 -14
- package/dist/core/features/query-modifiers.d.ts.map +1 -1
- package/dist/core/features/query-modifiers.js +1 -0
- package/dist/core/formatters/sql-formatter.d.ts +1 -1
- package/dist/core/formatters/sql-formatter.d.ts.map +1 -1
- package/dist/core/join-relationships.d.ts +1 -1
- package/dist/core/join-relationships.d.ts.map +1 -1
- package/dist/core/join-relationships.js +1 -3
- package/dist/core/query-builder.d.ts +2 -2
- package/dist/core/query-builder.d.ts.map +1 -1
- package/dist/core/query-builder.js +26 -14
- package/dist/core/tests/index.d.ts.map +1 -1
- package/dist/core/tests/index.js +1 -1
- package/dist/core/tests/integration/setup.d.ts +1 -1
- package/dist/core/tests/integration/setup.js +2 -2
- package/dist/core/tests/test-utils.d.ts +15 -1
- package/dist/core/tests/test-utils.d.ts.map +1 -1
- package/dist/core/tests/test-utils.js +16 -3
- package/dist/core/utils/logger.js +6 -5
- package/dist/core/validators/filter-validator.d.ts +1 -1
- package/dist/core/validators/filter-validator.d.ts.map +1 -1
- package/dist/core/validators/filter-validator.js +1 -1
- package/dist/core/validators/value-validator.d.ts +1 -1
- package/dist/core/validators/value-validator.d.ts.map +1 -1
- package/dist/formatters/index.d.ts +1 -0
- package/dist/formatters/index.js +1 -1
- package/dist/index.d.ts +5 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/types/base.d.ts.map +1 -1
- package/dist/types/clickhouse-types.d.ts +10 -7
- package/dist/types/clickhouse-types.d.ts.map +1 -1
- package/dist/types/filters.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +3 -2
- package/package.json +9 -5
package/dist/cli/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// CLI module type declarations
|
|
2
|
-
export { generateTypes } from './generate-types
|
|
2
|
+
export { generateTypes } from './generate-types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../src/core/connection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,EAAE,gBAAgB,IAAI,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AACnF,OAAO,KAAK,EAAE,gBAAgB,IAAI,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAEtF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../src/core/connection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,EAAE,gBAAgB,IAAI,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AACnF,OAAO,KAAK,EAAE,gBAAgB,IAAI,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAEtF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAI3D,KAAK,gBAAgB,GAAG,oBAAoB,GAAG,mBAAmB,CAAC;AAqCnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAiC;IACxD,OAAO,CAAC,MAAM,CAAC,YAAY,CAAuC;IAElE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,oBAAoB;IAaxE;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,SAAS,IAAI,gBAAgB;IAOpC;;;;;OAKG;IACH,MAAM,CAAC,qBAAqB,IAAI,kBAAkB;CAGnD"}
|
package/dist/core/connection.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createClient as createNodeClient } from '@clickhouse/client';
|
|
2
|
-
import { isClientConfig } from './query-builder';
|
|
2
|
+
import { isClientConfig } from './query-builder.js';
|
|
3
3
|
// Function to synchronously get the appropriate client
|
|
4
4
|
function getClickHouseClientSync() {
|
|
5
5
|
const isDev = process.env.NODE_ENV === 'development';
|
|
@@ -73,6 +73,8 @@ function getClickHouseClientSync() {
|
|
|
73
73
|
* **Important**: Browser environments require manual injection because `require()` calls don't work in browsers.
|
|
74
74
|
*/
|
|
75
75
|
export class ClickHouseConnection {
|
|
76
|
+
static instance = null;
|
|
77
|
+
static clientModule = null;
|
|
76
78
|
/**
|
|
77
79
|
* Initializes the ClickHouse connection with the provided configuration.
|
|
78
80
|
* This method must be called before any queries can be executed.
|
|
@@ -145,5 +147,3 @@ export class ClickHouseConnection {
|
|
|
145
147
|
return this.clientModule?.ClickHouseSettings || {};
|
|
146
148
|
}
|
|
147
149
|
}
|
|
148
|
-
ClickHouseConnection.instance = null;
|
|
149
|
-
ClickHouseConnection.clientModule = null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FilterConditionInput, FilterOperator, OperatorValueMap } from '../types/index.js';
|
|
2
|
+
import type { ColumnType, InferColumnType } from '../types/index.js';
|
|
2
3
|
export interface FilterGroup<Schema extends Record<string, Record<string, any>> = any, OriginalT extends Record<string, any> = any> {
|
|
3
4
|
operator: 'AND' | 'OR';
|
|
4
5
|
conditions: Array<FilterConditionInput<any, Schema, OriginalT> | FilterGroup<Schema, OriginalT>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cross-filter.d.ts","sourceRoot":"","sources":["../../src/core/cross-filter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cross-filter.d.ts","sourceRoot":"","sources":["../../src/core/cross-filter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC3F,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGrE,MAAM,WAAW,WAAW,CAC1B,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,GAAG,GAAG,EACxD,SAAS,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG;IAE3C,QAAQ,EAAE,KAAK,GAAG,IAAI,CAAC;IACvB,UAAU,EAAE,KAAK,CACf,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,CAAC,GAAG,WAAW,CAAC,MAAM,EAAE,SAAS,CAAC,CAC9E,CAAC;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE;QACR,MAAM,EAAE,MAAM,SAAS,CAAC;QACxB,SAAS,EAAE,KAAK,GAAG,MAAM,CAAC;KAC3B,CAAC;CACH;AAED;;;;GAIG;AACH,qBAAa,WAAW,CACtB,MAAM,SAAS;IAAE,CAAC,SAAS,EAAE,MAAM,GAAG;QAAE,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAA;CAAE,GAAG,GAAG,EAClF,SAAS,SAAS,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,MAAM,EAAE,MAAM,CAAC;IAMlD,OAAO,CAAC,MAAM,CAAC;IAH3B,OAAO,CAAC,SAAS,CAAyC;gBAGtC,MAAM,CAAC,EAAE,MAAM,YAAA;IAInC;;;OAGG;IACH,GAAG,CACD,UAAU,SAAS,OAAO,CAAC,MAAM,MAAM,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC,EAC3D,EAAE,SAAS,cAAc,EAEzB,SAAS,EAAE,oBAAoB,CAC7B,gBAAgB,CAAC,eAAe,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EACpE,MAAM,EACN,MAAM,CAAC,SAAS,CAAC,CAClB,GACA,IAAI;IA0BP;;OAEG;IACH,WAAW,CACT,UAAU,EAAE,KAAK,CAAC,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,GACtE,IAAI;IAQP;;;;OAIG;IACH,QAAQ,CACN,eAAe,EAAE,KAAK,CACpB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC,GAAG,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC,CAC9F,EACD,QAAQ,EAAE,KAAK,GAAG,IAAI,GACrB,IAAI;IAYP;;OAEG;IACH,aAAa,IAAI,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC;IAIvD;;;;OAIG;IACH,OAAO,CAAC,aAAa;IAarB;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAazB;;OAEG;IACH,OAAO,CAAC,aAAa;IAqBrB;;OAEG;IACH,OAAO,CAAC,OAAO;IAMf;;;;;OAKG;IACH,IAAI,CAAC,CAAC,SAAS,MAAM,MAAM,CAAC,SAAS,CAAC,EACpC,WAAW,EAAE,CAAC,EACd,CAAC,EAAE,MAAM,EACT,OAAO,GAAE,MAAM,GAAG,KAAc,GAC/B,IAAI;CAmBR"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { FilterValidator } from './validators/filter-validator';
|
|
1
|
+
import { FilterValidator } from './validators/filter-validator.js';
|
|
2
2
|
/**
|
|
3
3
|
* A type-safe filter builder supporting both simple conditions and complex nested groups.
|
|
4
4
|
* @template Schema - The full database schema type
|
|
5
5
|
* @template TableName - The specific table being filtered
|
|
6
6
|
*/
|
|
7
7
|
export class CrossFilter {
|
|
8
|
+
schema;
|
|
9
|
+
// Root group holding filter conditions or nested groups, defaulting to an implicit AND.
|
|
10
|
+
rootGroup;
|
|
8
11
|
// Optionally pass a schema to get full type-validation.
|
|
9
12
|
constructor(schema) {
|
|
10
13
|
this.schema = schema;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { QueryBuilder } from '../query-builder';
|
|
2
|
-
import { ColumnType } from '../../types';
|
|
1
|
+
import { QueryBuilder } from '../query-builder.js';
|
|
2
|
+
import { ColumnType } from '../../types/index.js';
|
|
3
3
|
export declare class AggregationFeature<Schema extends {
|
|
4
4
|
[tableName: string]: {
|
|
5
5
|
[columnName: string]: ColumnType;
|
|
@@ -10,17 +10,17 @@ export declare class AggregationFeature<Schema extends {
|
|
|
10
10
|
private createAggregation;
|
|
11
11
|
sum<Column extends keyof OriginalT, Alias extends string = `${Column & string}_sum`>(column: Column, alias?: Alias): {
|
|
12
12
|
select: string[];
|
|
13
|
-
where?: import("../../types").WhereCondition[];
|
|
13
|
+
where?: import("../../types/base.js").WhereCondition[];
|
|
14
14
|
groupBy?: string[];
|
|
15
15
|
having?: string[];
|
|
16
16
|
limit?: number;
|
|
17
17
|
offset?: number;
|
|
18
18
|
distinct?: boolean;
|
|
19
19
|
orderBy?: {
|
|
20
|
-
column: keyof T | import("../../types").TableColumn<Schema>;
|
|
21
|
-
direction: import("../../types").OrderDirection;
|
|
20
|
+
column: keyof T | import("../../types/base.js").TableColumn<Schema>;
|
|
21
|
+
direction: import("../../types/base.js").OrderDirection;
|
|
22
22
|
}[] | undefined;
|
|
23
|
-
joins?: import("../../types").JoinClause[];
|
|
23
|
+
joins?: import("../../types/base.js").JoinClause[];
|
|
24
24
|
parameters?: any[];
|
|
25
25
|
ctes?: string[];
|
|
26
26
|
unionQueries?: string[];
|
|
@@ -28,17 +28,17 @@ export declare class AggregationFeature<Schema extends {
|
|
|
28
28
|
};
|
|
29
29
|
count<Column extends keyof OriginalT, Alias extends string = `${Column & string}_count`>(column: Column, alias?: Alias): {
|
|
30
30
|
select: string[];
|
|
31
|
-
where?: import("../../types").WhereCondition[];
|
|
31
|
+
where?: import("../../types/base.js").WhereCondition[];
|
|
32
32
|
groupBy?: string[];
|
|
33
33
|
having?: string[];
|
|
34
34
|
limit?: number;
|
|
35
35
|
offset?: number;
|
|
36
36
|
distinct?: boolean;
|
|
37
37
|
orderBy?: {
|
|
38
|
-
column: keyof T | import("../../types").TableColumn<Schema>;
|
|
39
|
-
direction: import("../../types").OrderDirection;
|
|
38
|
+
column: keyof T | import("../../types/base.js").TableColumn<Schema>;
|
|
39
|
+
direction: import("../../types/base.js").OrderDirection;
|
|
40
40
|
}[] | undefined;
|
|
41
|
-
joins?: import("../../types").JoinClause[];
|
|
41
|
+
joins?: import("../../types/base.js").JoinClause[];
|
|
42
42
|
parameters?: any[];
|
|
43
43
|
ctes?: string[];
|
|
44
44
|
unionQueries?: string[];
|
|
@@ -46,17 +46,17 @@ export declare class AggregationFeature<Schema extends {
|
|
|
46
46
|
};
|
|
47
47
|
avg<Column extends keyof OriginalT, Alias extends string = `${Column & string}_avg`>(column: Column, alias?: Alias): {
|
|
48
48
|
select: string[];
|
|
49
|
-
where?: import("../../types").WhereCondition[];
|
|
49
|
+
where?: import("../../types/base.js").WhereCondition[];
|
|
50
50
|
groupBy?: string[];
|
|
51
51
|
having?: string[];
|
|
52
52
|
limit?: number;
|
|
53
53
|
offset?: number;
|
|
54
54
|
distinct?: boolean;
|
|
55
55
|
orderBy?: {
|
|
56
|
-
column: keyof T | import("../../types").TableColumn<Schema>;
|
|
57
|
-
direction: import("../../types").OrderDirection;
|
|
56
|
+
column: keyof T | import("../../types/base.js").TableColumn<Schema>;
|
|
57
|
+
direction: import("../../types/base.js").OrderDirection;
|
|
58
58
|
}[] | undefined;
|
|
59
|
-
joins?: import("../../types").JoinClause[];
|
|
59
|
+
joins?: import("../../types/base.js").JoinClause[];
|
|
60
60
|
parameters?: any[];
|
|
61
61
|
ctes?: string[];
|
|
62
62
|
unionQueries?: string[];
|
|
@@ -64,17 +64,17 @@ export declare class AggregationFeature<Schema extends {
|
|
|
64
64
|
};
|
|
65
65
|
min<Column extends keyof OriginalT, Alias extends string = `${Column & string}_min`>(column: Column, alias?: Alias): {
|
|
66
66
|
select: string[];
|
|
67
|
-
where?: import("../../types").WhereCondition[];
|
|
67
|
+
where?: import("../../types/base.js").WhereCondition[];
|
|
68
68
|
groupBy?: string[];
|
|
69
69
|
having?: string[];
|
|
70
70
|
limit?: number;
|
|
71
71
|
offset?: number;
|
|
72
72
|
distinct?: boolean;
|
|
73
73
|
orderBy?: {
|
|
74
|
-
column: keyof T | import("../../types").TableColumn<Schema>;
|
|
75
|
-
direction: import("../../types").OrderDirection;
|
|
74
|
+
column: keyof T | import("../../types/base.js").TableColumn<Schema>;
|
|
75
|
+
direction: import("../../types/base.js").OrderDirection;
|
|
76
76
|
}[] | undefined;
|
|
77
|
-
joins?: import("../../types").JoinClause[];
|
|
77
|
+
joins?: import("../../types/base.js").JoinClause[];
|
|
78
78
|
parameters?: any[];
|
|
79
79
|
ctes?: string[];
|
|
80
80
|
unionQueries?: string[];
|
|
@@ -82,17 +82,17 @@ export declare class AggregationFeature<Schema extends {
|
|
|
82
82
|
};
|
|
83
83
|
max<Column extends keyof OriginalT, Alias extends string = `${Column & string}_max`>(column: Column, alias?: Alias): {
|
|
84
84
|
select: string[];
|
|
85
|
-
where?: import("../../types").WhereCondition[];
|
|
85
|
+
where?: import("../../types/base.js").WhereCondition[];
|
|
86
86
|
groupBy?: string[];
|
|
87
87
|
having?: string[];
|
|
88
88
|
limit?: number;
|
|
89
89
|
offset?: number;
|
|
90
90
|
distinct?: boolean;
|
|
91
91
|
orderBy?: {
|
|
92
|
-
column: keyof T | import("../../types").TableColumn<Schema>;
|
|
93
|
-
direction: import("../../types").OrderDirection;
|
|
92
|
+
column: keyof T | import("../../types/base.js").TableColumn<Schema>;
|
|
93
|
+
direction: import("../../types/base.js").OrderDirection;
|
|
94
94
|
}[] | undefined;
|
|
95
|
-
joins?: import("../../types").JoinClause[];
|
|
95
|
+
joins?: import("../../types/base.js").JoinClause[];
|
|
96
96
|
parameters?: any[];
|
|
97
97
|
ctes?: string[];
|
|
98
98
|
unionQueries?: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aggregations.d.ts","sourceRoot":"","sources":["../../../src/core/features/aggregations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"aggregations.d.ts","sourceRoot":"","sources":["../../../src/core/features/aggregations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,qBAAa,kBAAkB,CAC7B,MAAM,SAAS;IAAE,CAAC,SAAS,EAAE,MAAM,GAAG;QAAE,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAA;CAAE,EAC5E,CAAC,EACD,SAAS,SAAS,OAAO,GAAG,KAAK,EACjC,YAAY,GAAG,EAAE,EACjB,SAAS,GAAG,CAAC;IAED,OAAO,CAAC,OAAO;gBAAP,OAAO,EAAE,YAAY,CAAC,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,CAAC;IAExF,OAAO,CAAC,iBAAiB;IAsBzB,GAAG,CAAC,MAAM,SAAS,MAAM,SAAS,EAAE,KAAK,SAAS,MAAM,GAAG,GAAG,MAAM,GAAG,MAAM,MAAM,EACjF,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,KAAK;;;;;;;;;;;;;;;;;;IASf,KAAK,CAAC,MAAM,SAAS,MAAM,SAAS,EAAE,KAAK,SAAS,MAAM,GAAG,GAAG,MAAM,GAAG,MAAM,QAAQ,EACrF,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,KAAK;;;;;;;;;;;;;;;;;;IASf,GAAG,CAAC,MAAM,SAAS,MAAM,SAAS,EAAE,KAAK,SAAS,MAAM,GAAG,GAAG,MAAM,GAAG,MAAM,MAAM,EACjF,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,KAAK;;;;;;;;;;;;;;;;;;IASf,GAAG,CAAC,MAAM,SAAS,MAAM,SAAS,EAAE,KAAK,SAAS,MAAM,GAAG,GAAG,MAAM,GAAG,MAAM,MAAM,EACjF,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,KAAK;;;;;;;;;;;;;;;;;;IASf,GAAG,CAAC,MAAM,SAAS,MAAM,SAAS,EAAE,KAAK,SAAS,MAAM,GAAG,GAAG,MAAM,GAAG,MAAM,MAAM,EACjF,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,KAAK;;;;;;;;;;;;;;;;;;CAQhB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { QueryBuilder } from '../query-builder';
|
|
2
|
-
import { ColumnType, TableColumn } from '../../types';
|
|
1
|
+
import { QueryBuilder } from '../query-builder.js';
|
|
2
|
+
import { ColumnType, TableColumn } from '../../types/index.js';
|
|
3
3
|
import { ClickHouseSettings } from '@clickhouse/client-common';
|
|
4
4
|
export declare class AnalyticsFeature<Schema extends {
|
|
5
5
|
[tableName: string]: {
|
|
@@ -11,7 +11,7 @@ export declare class AnalyticsFeature<Schema extends {
|
|
|
11
11
|
addCTE(alias: string, subquery: QueryBuilder<any, any> | string): {
|
|
12
12
|
ctes: string[];
|
|
13
13
|
select?: (string | keyof T)[] | undefined;
|
|
14
|
-
where?: import("../../types").WhereCondition[];
|
|
14
|
+
where?: import("../../types/base.js").WhereCondition[];
|
|
15
15
|
groupBy?: string[];
|
|
16
16
|
having?: string[];
|
|
17
17
|
limit?: number;
|
|
@@ -19,9 +19,9 @@ export declare class AnalyticsFeature<Schema extends {
|
|
|
19
19
|
distinct?: boolean;
|
|
20
20
|
orderBy?: {
|
|
21
21
|
column: keyof T | TableColumn<Schema>;
|
|
22
|
-
direction: import("../../types").OrderDirection;
|
|
22
|
+
direction: import("../../types/base.js").OrderDirection;
|
|
23
23
|
}[] | undefined;
|
|
24
|
-
joins?: import("../../types").JoinClause[];
|
|
24
|
+
joins?: import("../../types/base.js").JoinClause[];
|
|
25
25
|
parameters?: any[];
|
|
26
26
|
unionQueries?: string[];
|
|
27
27
|
settings?: string;
|
|
@@ -29,16 +29,16 @@ export declare class AnalyticsFeature<Schema extends {
|
|
|
29
29
|
addTimeInterval(column: keyof T | TableColumn<Schema>, interval: string, method: 'toStartOfInterval' | 'toStartOfMinute' | 'toStartOfHour' | 'toStartOfDay' | 'toStartOfWeek' | 'toStartOfMonth' | 'toStartOfQuarter' | 'toStartOfYear'): {
|
|
30
30
|
groupBy: string[];
|
|
31
31
|
select?: (string | keyof T)[] | undefined;
|
|
32
|
-
where?: import("../../types").WhereCondition[];
|
|
32
|
+
where?: import("../../types/base.js").WhereCondition[];
|
|
33
33
|
having?: string[];
|
|
34
34
|
limit?: number;
|
|
35
35
|
offset?: number;
|
|
36
36
|
distinct?: boolean;
|
|
37
37
|
orderBy?: {
|
|
38
38
|
column: keyof T | TableColumn<Schema>;
|
|
39
|
-
direction: import("../../types").OrderDirection;
|
|
39
|
+
direction: import("../../types/base.js").OrderDirection;
|
|
40
40
|
}[] | undefined;
|
|
41
|
-
joins?: import("../../types").JoinClause[];
|
|
41
|
+
joins?: import("../../types/base.js").JoinClause[];
|
|
42
42
|
parameters?: any[];
|
|
43
43
|
ctes?: string[];
|
|
44
44
|
unionQueries?: string[];
|
|
@@ -47,7 +47,7 @@ export declare class AnalyticsFeature<Schema extends {
|
|
|
47
47
|
addSettings(opts: ClickHouseSettings): {
|
|
48
48
|
settings: string;
|
|
49
49
|
select?: (string | keyof T)[] | undefined;
|
|
50
|
-
where?: import("../../types").WhereCondition[];
|
|
50
|
+
where?: import("../../types/base.js").WhereCondition[];
|
|
51
51
|
groupBy?: string[];
|
|
52
52
|
having?: string[];
|
|
53
53
|
limit?: number;
|
|
@@ -55,9 +55,9 @@ export declare class AnalyticsFeature<Schema extends {
|
|
|
55
55
|
distinct?: boolean;
|
|
56
56
|
orderBy?: {
|
|
57
57
|
column: keyof T | TableColumn<Schema>;
|
|
58
|
-
direction: import("../../types").OrderDirection;
|
|
58
|
+
direction: import("../../types/base.js").OrderDirection;
|
|
59
59
|
}[] | undefined;
|
|
60
|
-
joins?: import("../../types").JoinClause[];
|
|
60
|
+
joins?: import("../../types/base.js").JoinClause[];
|
|
61
61
|
parameters?: any[];
|
|
62
62
|
ctes?: string[];
|
|
63
63
|
unionQueries?: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../../src/core/features/analytics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../../src/core/features/analytics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAE9D,qBAAa,gBAAgB,CAC3B,MAAM,SAAS;IAAE,CAAC,SAAS,EAAE,MAAM,GAAG;QAAE,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAA;CAAE,EAC5E,CAAC,EACD,SAAS,SAAS,OAAO,GAAG,KAAK,EACjC,YAAY,GAAG,EAAE,EACjB,SAAS,GAAG,CAAC;IAED,OAAO,CAAC,OAAO;gBAAP,OAAO,EAAE,YAAY,CAAC,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,CAAC;IAExF,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,MAAM;;;;;;;;;;;;;;;;;;IAS/D,eAAe,CACb,MAAM,EAAE,MAAM,CAAC,GAAG,WAAW,CAAC,MAAM,CAAC,EACrC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,mBAAmB,GAAG,iBAAiB,GAAG,eAAe,GAAG,cAAc,GAAG,eAAe,GAAG,gBAAgB,GAAG,kBAAkB,GAAG,eAAe;;;;;;;;;;;;;;;;;;IAiBhK,WAAW,CAAC,IAAI,EAAE,kBAAkB;;;;;;;;;;;;;;;;;;CAQrC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { QueryBuilder } from '../query-builder';
|
|
2
|
-
import { CrossFilter } from '../cross-filter';
|
|
3
|
-
import { ColumnType } from '../../types';
|
|
1
|
+
import { QueryBuilder } from '../query-builder.js';
|
|
2
|
+
import { CrossFilter } from '../cross-filter.js';
|
|
3
|
+
import { ColumnType } from '../../types/index.js';
|
|
4
4
|
/**
|
|
5
5
|
* Feature for handling cross-filter operations on queries
|
|
6
6
|
*/
|
|
@@ -16,7 +16,7 @@ export declare class CrossFilteringFeature<Schema extends {
|
|
|
16
16
|
* @param crossFilter - An instance of CrossFilter containing shared filter conditions
|
|
17
17
|
* @returns Updated query config
|
|
18
18
|
*/
|
|
19
|
-
applyCrossFilters(crossFilter: CrossFilter<Schema, keyof Schema>): import("../../types").QueryConfig<T, Schema>;
|
|
19
|
+
applyCrossFilters(crossFilter: CrossFilter<Schema, keyof Schema>): import("../../types/base.js").QueryConfig<T, Schema>;
|
|
20
20
|
/**
|
|
21
21
|
* Apply AND conditions - each condition is applied with WHERE
|
|
22
22
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cross-filtering.d.ts","sourceRoot":"","sources":["../../../src/core/features/cross-filtering.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"cross-filtering.d.ts","sourceRoot":"","sources":["../../../src/core/features/cross-filtering.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAe,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAwB,UAAU,EAAe,MAAM,sBAAsB,CAAC;AAgBrF;;GAEG;AACH,qBAAa,qBAAqB,CAChC,MAAM,SAAS;IAAE,CAAC,SAAS,EAAE,MAAM,GAAG;QAAE,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAA;CAAE,EAC5E,CAAC,EACD,SAAS,SAAS,OAAO,GAAG,KAAK,EACjC,YAAY,GAAG,EAAE,EACjB,SAAS,GAAG,CAAC;IAED,OAAO,CAAC,OAAO;gBAAP,OAAO,EAAE,YAAY,CAAC,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,CAAC;IAExF;;;;OAIG;IACH,iBAAiB,CAAC,WAAW,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,MAAM,CAAC;IAsBhE;;OAEG;IACH,OAAO,CAAC,kBAAkB;IA4B1B;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;CAqD1B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { QueryBuilder } from '../query-builder';
|
|
2
|
-
import { ColumnType } from '../../types';
|
|
1
|
+
import { QueryBuilder } from '../query-builder.js';
|
|
2
|
+
import { ColumnType } from '../../types/index.js';
|
|
3
3
|
export declare class ExecutorFeature<Schema extends {
|
|
4
4
|
[tableName: string]: {
|
|
5
5
|
[columnName: string]: ColumnType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../src/core/features/executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../src/core/features/executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAKlD,qBAAa,eAAe,CAC1B,MAAM,SAAS;IAAE,CAAC,SAAS,EAAE,MAAM,GAAG;QAAE,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAA;CAAE,EAC5E,CAAC,EACD,SAAS,SAAS,OAAO,GAAG,KAAK,EACjC,YAAY,GAAG,EAAE,EACjB,SAAS,GAAG,CAAC;IAED,OAAO,CAAC,OAAO;gBAAP,OAAO,EAAE,YAAY,CAAC,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,CAAC;IAExF,eAAe,IAAI;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,GAAG,EAAE,CAAA;KAAE;IAOrD,KAAK,IAAI,MAAM;IAKT,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC;IAgDvB,MAAM,IAAI,OAAO,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC;IA+C5C,OAAO,CAAC,sBAAsB;CA0C/B"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ClickHouseConnection } from '../connection';
|
|
2
|
-
import { substituteParameters } from '../utils';
|
|
3
|
-
import { logger } from '../utils/logger';
|
|
1
|
+
import { ClickHouseConnection } from '../connection.js';
|
|
2
|
+
import { substituteParameters } from '../utils.js';
|
|
3
|
+
import { logger } from '../utils/logger.js';
|
|
4
4
|
export class ExecutorFeature {
|
|
5
|
+
builder;
|
|
5
6
|
constructor(builder) {
|
|
6
7
|
this.builder = builder;
|
|
7
8
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { QueryBuilder } from '../query-builder';
|
|
2
|
-
import { ColumnType, FilterOperator, TableColumn } from '../../types';
|
|
1
|
+
import { QueryBuilder } from '../query-builder.js';
|
|
2
|
+
import { ColumnType, FilterOperator, TableColumn } from '../../types/index.js';
|
|
3
3
|
export declare class FilteringFeature<Schema extends {
|
|
4
4
|
[tableName: string]: {
|
|
5
5
|
[columnName: string]: ColumnType;
|
|
@@ -8,7 +8,7 @@ export declare class FilteringFeature<Schema extends {
|
|
|
8
8
|
private builder;
|
|
9
9
|
constructor(builder: QueryBuilder<Schema, T, HasSelect, Aggregations, OriginalT>);
|
|
10
10
|
addCondition<K extends keyof OriginalT | TableColumn<Schema>>(conjunction: 'AND' | 'OR', column: K | K[], operator: FilterOperator, value: any): {
|
|
11
|
-
where: import("../../types").WhereCondition[];
|
|
11
|
+
where: import("../../types/base.js").WhereCondition[];
|
|
12
12
|
parameters: any[];
|
|
13
13
|
select?: (string | keyof T)[] | undefined;
|
|
14
14
|
groupBy?: string[];
|
|
@@ -18,9 +18,9 @@ export declare class FilteringFeature<Schema extends {
|
|
|
18
18
|
distinct?: boolean;
|
|
19
19
|
orderBy?: {
|
|
20
20
|
column: TableColumn<Schema> | keyof T;
|
|
21
|
-
direction: import("../../types").OrderDirection;
|
|
21
|
+
direction: import("../../types/base.js").OrderDirection;
|
|
22
22
|
}[] | undefined;
|
|
23
|
-
joins?: import("../../types").JoinClause[];
|
|
23
|
+
joins?: import("../../types/base.js").JoinClause[];
|
|
24
24
|
ctes?: string[];
|
|
25
25
|
unionQueries?: string[];
|
|
26
26
|
settings?: string;
|
|
@@ -30,7 +30,7 @@ export declare class FilteringFeature<Schema extends {
|
|
|
30
30
|
* @returns The updated query config
|
|
31
31
|
*/
|
|
32
32
|
startWhereGroup(): {
|
|
33
|
-
where: import("../../types").WhereCondition[];
|
|
33
|
+
where: import("../../types/base.js").WhereCondition[];
|
|
34
34
|
select?: (string | keyof T)[] | undefined;
|
|
35
35
|
groupBy?: string[];
|
|
36
36
|
having?: string[];
|
|
@@ -39,9 +39,9 @@ export declare class FilteringFeature<Schema extends {
|
|
|
39
39
|
distinct?: boolean;
|
|
40
40
|
orderBy?: {
|
|
41
41
|
column: TableColumn<Schema> | keyof T;
|
|
42
|
-
direction: import("../../types").OrderDirection;
|
|
42
|
+
direction: import("../../types/base.js").OrderDirection;
|
|
43
43
|
}[] | undefined;
|
|
44
|
-
joins?: import("../../types").JoinClause[];
|
|
44
|
+
joins?: import("../../types/base.js").JoinClause[];
|
|
45
45
|
parameters?: any[];
|
|
46
46
|
ctes?: string[];
|
|
47
47
|
unionQueries?: string[];
|
|
@@ -52,7 +52,7 @@ export declare class FilteringFeature<Schema extends {
|
|
|
52
52
|
* @returns The updated query config
|
|
53
53
|
*/
|
|
54
54
|
startOrWhereGroup(): {
|
|
55
|
-
where: import("../../types").WhereCondition[];
|
|
55
|
+
where: import("../../types/base.js").WhereCondition[];
|
|
56
56
|
select?: (string | keyof T)[] | undefined;
|
|
57
57
|
groupBy?: string[];
|
|
58
58
|
having?: string[];
|
|
@@ -61,9 +61,9 @@ export declare class FilteringFeature<Schema extends {
|
|
|
61
61
|
distinct?: boolean;
|
|
62
62
|
orderBy?: {
|
|
63
63
|
column: TableColumn<Schema> | keyof T;
|
|
64
|
-
direction: import("../../types").OrderDirection;
|
|
64
|
+
direction: import("../../types/base.js").OrderDirection;
|
|
65
65
|
}[] | undefined;
|
|
66
|
-
joins?: import("../../types").JoinClause[];
|
|
66
|
+
joins?: import("../../types/base.js").JoinClause[];
|
|
67
67
|
parameters?: any[];
|
|
68
68
|
ctes?: string[];
|
|
69
69
|
unionQueries?: string[];
|
|
@@ -74,7 +74,7 @@ export declare class FilteringFeature<Schema extends {
|
|
|
74
74
|
* @returns The updated query config
|
|
75
75
|
*/
|
|
76
76
|
endWhereGroup(): {
|
|
77
|
-
where: import("../../types").WhereCondition[];
|
|
77
|
+
where: import("../../types/base.js").WhereCondition[];
|
|
78
78
|
select?: (string | keyof T)[] | undefined;
|
|
79
79
|
groupBy?: string[];
|
|
80
80
|
having?: string[];
|
|
@@ -83,9 +83,9 @@ export declare class FilteringFeature<Schema extends {
|
|
|
83
83
|
distinct?: boolean;
|
|
84
84
|
orderBy?: {
|
|
85
85
|
column: TableColumn<Schema> | keyof T;
|
|
86
|
-
direction: import("../../types").OrderDirection;
|
|
86
|
+
direction: import("../../types/base.js").OrderDirection;
|
|
87
87
|
}[] | undefined;
|
|
88
|
-
joins?: import("../../types").JoinClause[];
|
|
88
|
+
joins?: import("../../types/base.js").JoinClause[];
|
|
89
89
|
parameters?: any[];
|
|
90
90
|
ctes?: string[];
|
|
91
91
|
unionQueries?: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filtering.d.ts","sourceRoot":"","sources":["../../../src/core/features/filtering.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"filtering.d.ts","sourceRoot":"","sources":["../../../src/core/features/filtering.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAE/E,qBAAa,gBAAgB,CAC3B,MAAM,SAAS;IAAE,CAAC,SAAS,EAAE,MAAM,GAAG;QAAE,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAA;CAAE,EAC5E,CAAC,EACD,SAAS,SAAS,OAAO,GAAG,KAAK,EACjC,YAAY,GAAG,EAAE,EACjB,SAAS,GAAG,CAAC;IAED,OAAO,CAAC,OAAO;gBAAP,OAAO,EAAE,YAAY,CAAC,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,CAAC;IAExF,YAAY,CAAC,CAAC,SAAS,MAAM,SAAS,GAAG,WAAW,CAAC,MAAM,CAAC,EAC1D,WAAW,EAAE,KAAK,GAAG,IAAI,EACzB,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,EACf,QAAQ,EAAE,cAAc,EACxB,KAAK,EAAE,GAAG;;;;;;;;;;;;;;;;;;IA4DZ;;;OAGG;IACH,eAAe;;;;;;;;;;;;;;;;;;IAkBf;;;OAGG;IACH,iBAAiB;;;;;;;;;;;;;;;;;;IAkBjB;;;OAGG;IACH,aAAa;;;;;;;;;;;;;;;;;;CAiBd"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { QueryBuilder } from '../query-builder';
|
|
2
|
-
import { ColumnType, JoinType } from '../../types';
|
|
1
|
+
import { QueryBuilder } from '../query-builder.js';
|
|
2
|
+
import { ColumnType, JoinType } from '../../types/index.js';
|
|
3
3
|
export declare class JoinFeature<Schema extends {
|
|
4
4
|
[tableName: string]: {
|
|
5
5
|
[columnName: string]: ColumnType;
|
|
@@ -8,17 +8,17 @@ export declare class JoinFeature<Schema extends {
|
|
|
8
8
|
private builder;
|
|
9
9
|
constructor(builder: QueryBuilder<Schema, T, HasSelect, Aggregations, OriginalT>);
|
|
10
10
|
addJoin<TableName extends keyof Schema>(type: JoinType, table: TableName, leftColumn: keyof OriginalT, rightColumn: `${TableName & string}.${keyof Schema[TableName] & string}`, alias?: string): {
|
|
11
|
-
joins: import("../../types").JoinClause[];
|
|
11
|
+
joins: import("../../types/base.js").JoinClause[];
|
|
12
12
|
select?: (string | keyof T)[] | undefined;
|
|
13
|
-
where?: import("../../types").WhereCondition[];
|
|
13
|
+
where?: import("../../types/base.js").WhereCondition[];
|
|
14
14
|
groupBy?: string[];
|
|
15
15
|
having?: string[];
|
|
16
16
|
limit?: number;
|
|
17
17
|
offset?: number;
|
|
18
18
|
distinct?: boolean;
|
|
19
19
|
orderBy?: {
|
|
20
|
-
column: keyof T | import("../../types").TableColumn<Schema>;
|
|
21
|
-
direction: import("../../types").OrderDirection;
|
|
20
|
+
column: keyof T | import("../../types/base.js").TableColumn<Schema>;
|
|
21
|
+
direction: import("../../types/base.js").OrderDirection;
|
|
22
22
|
}[] | undefined;
|
|
23
23
|
parameters?: any[];
|
|
24
24
|
ctes?: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"joins.d.ts","sourceRoot":"","sources":["../../../src/core/features/joins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"joins.d.ts","sourceRoot":"","sources":["../../../src/core/features/joins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAE5D,qBAAa,WAAW,CACtB,MAAM,SAAS;IAAE,CAAC,SAAS,EAAE,MAAM,GAAG;QAAE,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAA;CAAE,EAC5E,CAAC,EACD,SAAS,SAAS,OAAO,GAAG,KAAK,EACjC,YAAY,GAAG,EAAE,EACjB,SAAS,GAAG,CAAC;IAED,OAAO,CAAC,OAAO;gBAAP,OAAO,EAAE,YAAY,CAAC,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,CAAC;IAExF,OAAO,CAAC,SAAS,SAAS,MAAM,MAAM,EACpC,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,SAAS,EAChB,UAAU,EAAE,MAAM,SAAS,EAC3B,WAAW,EAAE,GAAG,SAAS,GAAG,MAAM,IAAI,MAAM,MAAM,CAAC,SAAS,CAAC,GAAG,MAAM,EAAE,EACxE,KAAK,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;CAYjB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { QueryBuilder } from '../query-builder';
|
|
2
|
-
import { ColumnType, PaginationOptions, PaginatedResult } from '../../types';
|
|
1
|
+
import { QueryBuilder } from '../query-builder.js';
|
|
2
|
+
import { ColumnType, PaginationOptions, PaginatedResult } from '../../types/index.js';
|
|
3
3
|
export declare class PaginationFeature<Schema extends {
|
|
4
4
|
[tableName: string]: {
|
|
5
5
|
[columnName: string]: ColumnType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/core/features/pagination.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/core/features/pagination.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,eAAe,EAAyB,MAAM,sBAAsB,CAAC;AAE7G,qBAAa,iBAAiB,CAC5B,MAAM,SAAS;IAAE,CAAC,SAAS,EAAE,MAAM,GAAG;QAAE,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAA;CAAE,EAC5E,CAAC,EACD,SAAS,SAAS,OAAO,GAAG,KAAK,EACjC,YAAY,GAAG,EAAE,EACjB,SAAS,GAAG,CAAC;IAKD,OAAO,CAAC,OAAO;IAH3B,OAAO,CAAC,MAAM,CAAC,YAAY,CAAiE;IAC5F,OAAO,CAAC,QAAQ,CAAS;gBAEL,OAAO,EAAE,YAAY,CAAC,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,CAAC;IAQxF,OAAO,KAAK,WAAW,GAEtB;IAED,OAAO,KAAK,WAAW,QAGtB;IAED,OAAO,KAAK,eAAe,GAE1B;IAED,OAAO,KAAK,eAAe,QAG1B;IAED,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,YAAY;IAId,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IA0I1E,OAAO,CAAC,cAAc;IAmBhB,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAIvD,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,cAAc,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;CAkB1E"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export class PaginationFeature {
|
|
2
|
+
builder;
|
|
3
|
+
static cursorStacks = new Map();
|
|
4
|
+
stackKey;
|
|
2
5
|
constructor(builder) {
|
|
3
6
|
this.builder = builder;
|
|
4
7
|
// Create a unique key for this pagination instance based on the table and sort
|
|
@@ -187,4 +190,3 @@ export class PaginationFeature {
|
|
|
187
190
|
}
|
|
188
191
|
}
|
|
189
192
|
}
|
|
190
|
-
PaginationFeature.cursorStacks = new Map();
|