windmill-parser-wasm-regex 1.481.0 → 1.494.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/package.json
CHANGED
|
@@ -5,6 +5,7 @@ export function parse_powershell(code: string): string;
|
|
|
5
5
|
export function parse_sql(code: string): string;
|
|
6
6
|
export function parse_mysql(code: string): string;
|
|
7
7
|
export function parse_oracledb(code: string): string;
|
|
8
|
+
export function parse_duckdb(code: string): string;
|
|
8
9
|
export function parse_bigquery(code: string): string;
|
|
9
10
|
export function parse_snowflake(code: string): string;
|
|
10
11
|
export function parse_mssql(code: string): string;
|
|
@@ -20,6 +21,7 @@ export interface InitOutput {
|
|
|
20
21
|
readonly parse_sql: (a: number, b: number) => [number, number];
|
|
21
22
|
readonly parse_mysql: (a: number, b: number) => [number, number];
|
|
22
23
|
readonly parse_oracledb: (a: number, b: number) => [number, number];
|
|
24
|
+
readonly parse_duckdb: (a: number, b: number) => [number, number];
|
|
23
25
|
readonly parse_bigquery: (a: number, b: number) => [number, number];
|
|
24
26
|
readonly parse_snowflake: (a: number, b: number) => [number, number];
|
|
25
27
|
readonly parse_mssql: (a: number, b: number) => [number, number];
|
package/windmill_parser_wasm.js
CHANGED
|
@@ -168,6 +168,25 @@ export function parse_oracledb(code) {
|
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
+
/**
|
|
172
|
+
* @param {string} code
|
|
173
|
+
* @returns {string}
|
|
174
|
+
*/
|
|
175
|
+
export function parse_duckdb(code) {
|
|
176
|
+
let deferred2_0;
|
|
177
|
+
let deferred2_1;
|
|
178
|
+
try {
|
|
179
|
+
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
180
|
+
const len0 = WASM_VECTOR_LEN;
|
|
181
|
+
const ret = wasm.parse_duckdb(ptr0, len0);
|
|
182
|
+
deferred2_0 = ret[0];
|
|
183
|
+
deferred2_1 = ret[1];
|
|
184
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
185
|
+
} finally {
|
|
186
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
171
190
|
/**
|
|
172
191
|
* @param {string} code
|
|
173
192
|
* @returns {string}
|
|
Binary file
|