alasql 4.20.0 → 4.21.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.
- package/dist/alasql-worker.js +2 -2
- package/dist/alasql.d.ts +14 -2
- package/dist/alasql.fs.js +1069 -738
- package/dist/alasql.js +1069 -738
- package/dist/alasql.min.js +146 -146
- package/package.json +5 -2
- package/test1107.json +3 -0
- package/types/alasql.d.ts +14 -2
package/dist/alasql-worker.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
//! AlaSQL v4.
|
|
1
|
+
//! AlaSQL v4.21.0 build: develop-38bf3c39 | © 2014-2025 Andrey Gershun & Mathias Wulff | License: MIT
|
|
2
2
|
/*
|
|
3
3
|
@module alasql
|
|
4
|
-
@version 4.
|
|
4
|
+
@version 4.21.0
|
|
5
5
|
|
|
6
6
|
AlaSQL - JavaScript SQL database
|
|
7
7
|
© 2014-2025 Andrey Gershun & Mathias Wulff
|
package/dist/alasql.d.ts
CHANGED
|
@@ -39,6 +39,11 @@ declare module 'alasql' {
|
|
|
39
39
|
<T = unknown>(params?: any, cb?: AlaSQLCallback<T>, scope?: unknown): T;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
// returned by alasql.compile(): a compiled statement with a promise helper
|
|
43
|
+
export interface AlaSQLCompiledStatement extends AlaSQLStatement {
|
|
44
|
+
promise<T = unknown>(params?: any): Promise<T>;
|
|
45
|
+
}
|
|
46
|
+
|
|
42
47
|
export type AlaSQLDefaultColumns = {[columnName: string]: string};
|
|
43
48
|
|
|
44
49
|
/**
|
|
@@ -52,7 +57,8 @@ declare module 'alasql' {
|
|
|
52
57
|
export interface Op extends AlaSQLExpression {
|
|
53
58
|
left: ExpressionNode;
|
|
54
59
|
op: string;
|
|
55
|
-
|
|
60
|
+
// `->` with a bare property name (`a->b`, `tx.a.b`) puts the name as a string
|
|
61
|
+
right?: ExpressionNode | string;
|
|
56
62
|
right1?: ExpressionNode;
|
|
57
63
|
right2?: ExpressionNode;
|
|
58
64
|
}
|
|
@@ -84,8 +90,13 @@ declare module 'alasql' {
|
|
|
84
90
|
right: ExpressionNode;
|
|
85
91
|
}
|
|
86
92
|
|
|
93
|
+
export interface FuncValue extends AlaSQLExpression {
|
|
94
|
+
funcid: string;
|
|
95
|
+
args?: ExpressionNode[];
|
|
96
|
+
}
|
|
97
|
+
|
|
87
98
|
export type ExpressionNode =
|
|
88
|
-
Op | Column | ParamValue | NumValue | StringValue | LogicValue | UniOp;
|
|
99
|
+
Op | Column | ParamValue | NumValue | StringValue | LogicValue | UniOp | FuncValue;
|
|
89
100
|
|
|
90
101
|
export interface ExpressionWrapper extends AlaSQLExpression {
|
|
91
102
|
expression: ExpressionNode;
|
|
@@ -215,6 +226,7 @@ declare module 'alasql' {
|
|
|
215
226
|
error: Error;
|
|
216
227
|
<T = unknown>(sql: string, params?: any, cb?: AlaSQLCallback<T>, scope?: unknown): T;
|
|
217
228
|
parse(sql: string): AlaSQLAST;
|
|
229
|
+
compile(sql: string, databaseid?: string): AlaSQLCompiledStatement;
|
|
218
230
|
promise<T = unknown>(sql: string, params?: any): Promise<T>;
|
|
219
231
|
fn: userDefinedFunctionLookUp;
|
|
220
232
|
from: userFromFunctionLookUp;
|