@prisma/query-compiler-wasm 6.20.0-12.next-52645f61ef1fbbcf1bb2357fe85df59cbdefba38 → 6.20.0-13.next-a142dc29aa8dc1f381cdb0509edbe0aa9d405b96

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.
@@ -1,23 +1,23 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export interface QueryCompilerParams {
4
- datamodel: string;
5
- provider: AdapterProvider;
6
- connectionInfo: JsConnectionInfo;
7
- }
8
-
9
- export type BatchResponse = { type: "multi"; plans: Expression[] } | { type: "compacted"; plan: Expression; arguments: Record<string, ArgumentValue>[]; nestedSelection: string[]; keys: string[]; expectNonEmpty: boolean };
10
-
11
3
  export interface JsCompileError {
12
4
  message: string;
13
5
  code: string | undefined;
14
6
  meta: Value | undefined;
15
7
  }
16
8
 
9
+ export type BatchResponse = { type: "multi"; plans: Expression[] } | { type: "compacted"; plan: Expression; arguments: Record<string, ArgumentValue>[]; nestedSelection: string[]; keys: string[]; expectNonEmpty: boolean };
10
+
11
+ export interface QueryCompilerParams {
12
+ datamodel: string;
13
+ provider: AdapterProvider;
14
+ connectionInfo: JsConnectionInfo;
15
+ }
16
+
17
17
  export class QueryCompiler {
18
18
  free(): void;
19
19
  [Symbol.dispose](): void;
20
+ compileBatch(request: string): any;
20
21
  constructor(params: QueryCompilerParams);
21
22
  compile(request: string): any;
22
- compileBatch(request: string): any;
23
23
  }
@@ -194,6 +194,19 @@ export class QueryCompiler {
194
194
  const ptr = this.__destroy_into_raw();
195
195
  wasm.__wbg_querycompiler_free(ptr, 0);
196
196
  }
197
+ /**
198
+ * @param {string} request
199
+ * @returns {any}
200
+ */
201
+ compileBatch(request) {
202
+ const ptr0 = passStringToWasm0(request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
203
+ const len0 = WASM_VECTOR_LEN;
204
+ const ret = wasm.querycompiler_compileBatch(this.__wbg_ptr, ptr0, len0);
205
+ if (ret[2]) {
206
+ throw takeFromExternrefTable0(ret[1]);
207
+ }
208
+ return takeFromExternrefTable0(ret[0]);
209
+ }
197
210
  /**
198
211
  * @param {QueryCompilerParams} params
199
212
  */
@@ -219,19 +232,6 @@ export class QueryCompiler {
219
232
  }
220
233
  return takeFromExternrefTable0(ret[0]);
221
234
  }
222
- /**
223
- * @param {string} request
224
- * @returns {any}
225
- */
226
- compileBatch(request) {
227
- const ptr0 = passStringToWasm0(request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
228
- const len0 = WASM_VECTOR_LEN;
229
- const ret = wasm.querycompiler_compileBatch(this.__wbg_ptr, ptr0, len0);
230
- if (ret[2]) {
231
- throw takeFromExternrefTable0(ret[1]);
232
- }
233
- return takeFromExternrefTable0(ret[0]);
234
- }
235
235
  }
236
236
  if (Symbol.dispose) QueryCompiler.prototype[Symbol.dispose] = QueryCompiler.prototype.free;
237
237
 
Binary file
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
4
  export const __wbg_querycompiler_free: (a: number, b: number) => void;
5
- export const querycompiler_new: (a: any) => [number, number, number];
6
5
  export const querycompiler_compile: (a: number, b: number, c: number) => [number, number, number];
7
6
  export const querycompiler_compileBatch: (a: number, b: number, c: number) => [number, number, number];
7
+ export const querycompiler_new: (a: any) => [number, number, number];
8
8
  export const __wbindgen_malloc: (a: number, b: number) => number;
9
9
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
10
10
  export const __wbindgen_externrefs: WebAssembly.Table;
@@ -17,7 +17,7 @@ export interface JsCompileError {
17
17
  export class QueryCompiler {
18
18
  free(): void;
19
19
  [Symbol.dispose](): void;
20
+ compileBatch(request: string): any;
20
21
  constructor(params: QueryCompilerParams);
21
22
  compile(request: string): any;
22
- compileBatch(request: string): any;
23
23
  }
@@ -194,6 +194,19 @@ export class QueryCompiler {
194
194
  const ptr = this.__destroy_into_raw();
195
195
  wasm.__wbg_querycompiler_free(ptr, 0);
196
196
  }
197
+ /**
198
+ * @param {string} request
199
+ * @returns {any}
200
+ */
201
+ compileBatch(request) {
202
+ const ptr0 = passStringToWasm0(request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
203
+ const len0 = WASM_VECTOR_LEN;
204
+ const ret = wasm.querycompiler_compileBatch(this.__wbg_ptr, ptr0, len0);
205
+ if (ret[2]) {
206
+ throw takeFromExternrefTable0(ret[1]);
207
+ }
208
+ return takeFromExternrefTable0(ret[0]);
209
+ }
197
210
  /**
198
211
  * @param {QueryCompilerParams} params
199
212
  */
@@ -219,19 +232,6 @@ export class QueryCompiler {
219
232
  }
220
233
  return takeFromExternrefTable0(ret[0]);
221
234
  }
222
- /**
223
- * @param {string} request
224
- * @returns {any}
225
- */
226
- compileBatch(request) {
227
- const ptr0 = passStringToWasm0(request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
228
- const len0 = WASM_VECTOR_LEN;
229
- const ret = wasm.querycompiler_compileBatch(this.__wbg_ptr, ptr0, len0);
230
- if (ret[2]) {
231
- throw takeFromExternrefTable0(ret[1]);
232
- }
233
- return takeFromExternrefTable0(ret[0]);
234
- }
235
235
  }
236
236
  if (Symbol.dispose) QueryCompiler.prototype[Symbol.dispose] = QueryCompiler.prototype.free;
237
237
 
Binary file
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
4
  export const __wbg_querycompiler_free: (a: number, b: number) => void;
5
- export const querycompiler_new: (a: any) => [number, number, number];
6
5
  export const querycompiler_compile: (a: number, b: number, c: number) => [number, number, number];
7
6
  export const querycompiler_compileBatch: (a: number, b: number, c: number) => [number, number, number];
7
+ export const querycompiler_new: (a: any) => [number, number, number];
8
8
  export const __wbindgen_malloc: (a: number, b: number) => number;
9
9
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
10
10
  export const __wbindgen_externrefs: WebAssembly.Table;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/query-compiler-wasm",
3
- "version": "6.20.0-12.next-52645f61ef1fbbcf1bb2357fe85df59cbdefba38",
3
+ "version": "6.20.0-13.next-a142dc29aa8dc1f381cdb0509edbe0aa9d405b96",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,5 +1,11 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export interface JsCompileError {
4
+ message: string;
5
+ code: string | undefined;
6
+ meta: Value | undefined;
7
+ }
8
+
3
9
  export interface QueryCompilerParams {
4
10
  datamodel: string;
5
11
  provider: AdapterProvider;
@@ -8,16 +14,10 @@ export interface QueryCompilerParams {
8
14
 
9
15
  export type BatchResponse = { type: "multi"; plans: Expression[] } | { type: "compacted"; plan: Expression; arguments: Record<string, ArgumentValue>[]; nestedSelection: string[]; keys: string[]; expectNonEmpty: boolean };
10
16
 
11
- export interface JsCompileError {
12
- message: string;
13
- code: string | undefined;
14
- meta: Value | undefined;
15
- }
16
-
17
17
  export class QueryCompiler {
18
18
  free(): void;
19
19
  [Symbol.dispose](): void;
20
+ compileBatch(request: string): any;
20
21
  constructor(params: QueryCompilerParams);
21
22
  compile(request: string): any;
22
- compileBatch(request: string): any;
23
23
  }
@@ -194,6 +194,19 @@ export class QueryCompiler {
194
194
  const ptr = this.__destroy_into_raw();
195
195
  wasm.__wbg_querycompiler_free(ptr, 0);
196
196
  }
197
+ /**
198
+ * @param {string} request
199
+ * @returns {any}
200
+ */
201
+ compileBatch(request) {
202
+ const ptr0 = passStringToWasm0(request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
203
+ const len0 = WASM_VECTOR_LEN;
204
+ const ret = wasm.querycompiler_compileBatch(this.__wbg_ptr, ptr0, len0);
205
+ if (ret[2]) {
206
+ throw takeFromExternrefTable0(ret[1]);
207
+ }
208
+ return takeFromExternrefTable0(ret[0]);
209
+ }
197
210
  /**
198
211
  * @param {QueryCompilerParams} params
199
212
  */
@@ -219,19 +232,6 @@ export class QueryCompiler {
219
232
  }
220
233
  return takeFromExternrefTable0(ret[0]);
221
234
  }
222
- /**
223
- * @param {string} request
224
- * @returns {any}
225
- */
226
- compileBatch(request) {
227
- const ptr0 = passStringToWasm0(request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
228
- const len0 = WASM_VECTOR_LEN;
229
- const ret = wasm.querycompiler_compileBatch(this.__wbg_ptr, ptr0, len0);
230
- if (ret[2]) {
231
- throw takeFromExternrefTable0(ret[1]);
232
- }
233
- return takeFromExternrefTable0(ret[0]);
234
- }
235
235
  }
236
236
  if (Symbol.dispose) QueryCompiler.prototype[Symbol.dispose] = QueryCompiler.prototype.free;
237
237
 
Binary file
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
4
  export const __wbg_querycompiler_free: (a: number, b: number) => void;
5
- export const querycompiler_new: (a: any) => [number, number, number];
6
5
  export const querycompiler_compile: (a: number, b: number, c: number) => [number, number, number];
7
6
  export const querycompiler_compileBatch: (a: number, b: number, c: number) => [number, number, number];
7
+ export const querycompiler_new: (a: any) => [number, number, number];
8
8
  export const __wbindgen_malloc: (a: number, b: number) => number;
9
9
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
10
10
  export const __wbindgen_externrefs: WebAssembly.Table;
@@ -1,5 +1,11 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export interface JsCompileError {
4
+ message: string;
5
+ code: string | undefined;
6
+ meta: Value | undefined;
7
+ }
8
+
3
9
  export interface QueryCompilerParams {
4
10
  datamodel: string;
5
11
  provider: AdapterProvider;
@@ -8,16 +14,10 @@ export interface QueryCompilerParams {
8
14
 
9
15
  export type BatchResponse = { type: "multi"; plans: Expression[] } | { type: "compacted"; plan: Expression; arguments: Record<string, ArgumentValue>[]; nestedSelection: string[]; keys: string[]; expectNonEmpty: boolean };
10
16
 
11
- export interface JsCompileError {
12
- message: string;
13
- code: string | undefined;
14
- meta: Value | undefined;
15
- }
16
-
17
17
  export class QueryCompiler {
18
18
  free(): void;
19
19
  [Symbol.dispose](): void;
20
+ compileBatch(request: string): any;
20
21
  constructor(params: QueryCompilerParams);
21
22
  compile(request: string): any;
22
- compileBatch(request: string): any;
23
23
  }
@@ -194,6 +194,19 @@ export class QueryCompiler {
194
194
  const ptr = this.__destroy_into_raw();
195
195
  wasm.__wbg_querycompiler_free(ptr, 0);
196
196
  }
197
+ /**
198
+ * @param {string} request
199
+ * @returns {any}
200
+ */
201
+ compileBatch(request) {
202
+ const ptr0 = passStringToWasm0(request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
203
+ const len0 = WASM_VECTOR_LEN;
204
+ const ret = wasm.querycompiler_compileBatch(this.__wbg_ptr, ptr0, len0);
205
+ if (ret[2]) {
206
+ throw takeFromExternrefTable0(ret[1]);
207
+ }
208
+ return takeFromExternrefTable0(ret[0]);
209
+ }
197
210
  /**
198
211
  * @param {QueryCompilerParams} params
199
212
  */
@@ -219,19 +232,6 @@ export class QueryCompiler {
219
232
  }
220
233
  return takeFromExternrefTable0(ret[0]);
221
234
  }
222
- /**
223
- * @param {string} request
224
- * @returns {any}
225
- */
226
- compileBatch(request) {
227
- const ptr0 = passStringToWasm0(request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
228
- const len0 = WASM_VECTOR_LEN;
229
- const ret = wasm.querycompiler_compileBatch(this.__wbg_ptr, ptr0, len0);
230
- if (ret[2]) {
231
- throw takeFromExternrefTable0(ret[1]);
232
- }
233
- return takeFromExternrefTable0(ret[0]);
234
- }
235
235
  }
236
236
  if (Symbol.dispose) QueryCompiler.prototype[Symbol.dispose] = QueryCompiler.prototype.free;
237
237
 
Binary file
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
4
  export const __wbg_querycompiler_free: (a: number, b: number) => void;
5
- export const querycompiler_new: (a: any) => [number, number, number];
6
5
  export const querycompiler_compile: (a: number, b: number, c: number) => [number, number, number];
7
6
  export const querycompiler_compileBatch: (a: number, b: number, c: number) => [number, number, number];
7
+ export const querycompiler_new: (a: any) => [number, number, number];
8
8
  export const __wbindgen_malloc: (a: number, b: number) => number;
9
9
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
10
10
  export const __wbindgen_externrefs: WebAssembly.Table;
@@ -17,7 +17,7 @@ export interface JsCompileError {
17
17
  export class QueryCompiler {
18
18
  free(): void;
19
19
  [Symbol.dispose](): void;
20
+ compileBatch(request: string): any;
20
21
  constructor(params: QueryCompilerParams);
21
22
  compile(request: string): any;
22
- compileBatch(request: string): any;
23
23
  }
@@ -194,6 +194,19 @@ export class QueryCompiler {
194
194
  const ptr = this.__destroy_into_raw();
195
195
  wasm.__wbg_querycompiler_free(ptr, 0);
196
196
  }
197
+ /**
198
+ * @param {string} request
199
+ * @returns {any}
200
+ */
201
+ compileBatch(request) {
202
+ const ptr0 = passStringToWasm0(request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
203
+ const len0 = WASM_VECTOR_LEN;
204
+ const ret = wasm.querycompiler_compileBatch(this.__wbg_ptr, ptr0, len0);
205
+ if (ret[2]) {
206
+ throw takeFromExternrefTable0(ret[1]);
207
+ }
208
+ return takeFromExternrefTable0(ret[0]);
209
+ }
197
210
  /**
198
211
  * @param {QueryCompilerParams} params
199
212
  */
@@ -219,19 +232,6 @@ export class QueryCompiler {
219
232
  }
220
233
  return takeFromExternrefTable0(ret[0]);
221
234
  }
222
- /**
223
- * @param {string} request
224
- * @returns {any}
225
- */
226
- compileBatch(request) {
227
- const ptr0 = passStringToWasm0(request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
228
- const len0 = WASM_VECTOR_LEN;
229
- const ret = wasm.querycompiler_compileBatch(this.__wbg_ptr, ptr0, len0);
230
- if (ret[2]) {
231
- throw takeFromExternrefTable0(ret[1]);
232
- }
233
- return takeFromExternrefTable0(ret[0]);
234
- }
235
235
  }
236
236
  if (Symbol.dispose) QueryCompiler.prototype[Symbol.dispose] = QueryCompiler.prototype.free;
237
237
 
Binary file
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
4
  export const __wbg_querycompiler_free: (a: number, b: number) => void;
5
- export const querycompiler_new: (a: any) => [number, number, number];
6
5
  export const querycompiler_compile: (a: number, b: number, c: number) => [number, number, number];
7
6
  export const querycompiler_compileBatch: (a: number, b: number, c: number) => [number, number, number];
7
+ export const querycompiler_new: (a: any) => [number, number, number];
8
8
  export const __wbindgen_malloc: (a: number, b: number) => number;
9
9
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
10
10
  export const __wbindgen_externrefs: WebAssembly.Table;