@polyglot-sql/sdk 0.4.1 → 0.4.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.
- package/README.md +82 -8
- package/dist/cdn/polyglot.esm.js +1541 -1542
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +29 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +1 -2
- package/dist/index.node.js +5501 -0
- package/dist/manual.d.ts +15 -0
- package/dist/manual.js +5682 -0
- package/dist/{polyglot_sql_wasm_bg.wasm → polyglot_sql.wasm} +0 -0
- package/dist/polyglot_sql.wasm.d.ts +2 -0
- package/package.json +25 -4
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const __vite__wasmUrl = require("path").join(__dirname, "
|
|
2
|
+
const __vite__wasmUrl = require("path").join(__dirname, "polyglot_sql.wasm");
|
|
3
3
|
class WasmAssignmentArray {
|
|
4
4
|
__destroy_into_raw() {
|
|
5
5
|
const ptr = this.__wbg_ptr;
|
|
@@ -2964,7 +2964,7 @@ async function __polyglot_init_wasm() {
|
|
|
2964
2964
|
if (__vite__wasmModule) return;
|
|
2965
2965
|
if (__initPromise) return __initPromise;
|
|
2966
2966
|
__initPromise = (async () => {
|
|
2967
|
-
const wasmPath = require("path").join(__dirname, "
|
|
2967
|
+
const wasmPath = require("path").join(__dirname, "polyglot_sql.wasm");
|
|
2968
2968
|
const bytes = require("fs").readFileSync(wasmPath);
|
|
2969
2969
|
const result = await WebAssembly.instantiate(bytes, __vite__wasmImports);
|
|
2970
2970
|
__vite__wasmModule = result.instance.exports;
|
package/dist/index.d.cts
CHANGED
|
@@ -4151,6 +4151,14 @@ declare type ExecuteStatement = {
|
|
|
4151
4151
|
* Named parameters: @param=value pairs
|
|
4152
4152
|
*/
|
|
4153
4153
|
parameters: Array<ExecuteParameter>;
|
|
4154
|
+
/**
|
|
4155
|
+
* Positional prepared statement arguments, used by PostgreSQL EXECUTE name(...).
|
|
4156
|
+
*/
|
|
4157
|
+
arguments?: Array<Expression>;
|
|
4158
|
+
/**
|
|
4159
|
+
* Whether this statement represents PostgreSQL-style prepared statement execution.
|
|
4160
|
+
*/
|
|
4161
|
+
prepared?: boolean;
|
|
4154
4162
|
/**
|
|
4155
4163
|
* Trailing clause text (e.g. WITH RESULT SETS ((...)))
|
|
4156
4164
|
*/
|
|
@@ -5090,6 +5098,8 @@ declare type Expression = {
|
|
|
5090
5098
|
"command": Command;
|
|
5091
5099
|
} | {
|
|
5092
5100
|
"kill": Kill;
|
|
5101
|
+
} | {
|
|
5102
|
+
"prepare": PrepareStatement;
|
|
5093
5103
|
} | {
|
|
5094
5104
|
"execute": ExecuteStatement;
|
|
5095
5105
|
} | {
|
|
@@ -10663,6 +10673,25 @@ declare type Predict = {
|
|
|
10663
10673
|
params_struct: Expression | null;
|
|
10664
10674
|
};
|
|
10665
10675
|
|
|
10676
|
+
/**
|
|
10677
|
+
* PREPARE statement (PostgreSQL/generic prepared statement definition)
|
|
10678
|
+
* Syntax: PREPARE name [(type, ...)] AS statement
|
|
10679
|
+
*/
|
|
10680
|
+
declare type PrepareStatement = {
|
|
10681
|
+
/**
|
|
10682
|
+
* The prepared statement name.
|
|
10683
|
+
*/
|
|
10684
|
+
name: Identifier;
|
|
10685
|
+
/**
|
|
10686
|
+
* Optional PostgreSQL parameter type list.
|
|
10687
|
+
*/
|
|
10688
|
+
parameter_types?: Array<DataType>;
|
|
10689
|
+
/**
|
|
10690
|
+
* The statement to execute when the prepared statement is invoked.
|
|
10691
|
+
*/
|
|
10692
|
+
statement: Expression;
|
|
10693
|
+
};
|
|
10694
|
+
|
|
10666
10695
|
/**
|
|
10667
10696
|
* PreviousDay
|
|
10668
10697
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -4151,6 +4151,14 @@ declare type ExecuteStatement = {
|
|
|
4151
4151
|
* Named parameters: @param=value pairs
|
|
4152
4152
|
*/
|
|
4153
4153
|
parameters: Array<ExecuteParameter>;
|
|
4154
|
+
/**
|
|
4155
|
+
* Positional prepared statement arguments, used by PostgreSQL EXECUTE name(...).
|
|
4156
|
+
*/
|
|
4157
|
+
arguments?: Array<Expression>;
|
|
4158
|
+
/**
|
|
4159
|
+
* Whether this statement represents PostgreSQL-style prepared statement execution.
|
|
4160
|
+
*/
|
|
4161
|
+
prepared?: boolean;
|
|
4154
4162
|
/**
|
|
4155
4163
|
* Trailing clause text (e.g. WITH RESULT SETS ((...)))
|
|
4156
4164
|
*/
|
|
@@ -5090,6 +5098,8 @@ declare type Expression = {
|
|
|
5090
5098
|
"command": Command;
|
|
5091
5099
|
} | {
|
|
5092
5100
|
"kill": Kill;
|
|
5101
|
+
} | {
|
|
5102
|
+
"prepare": PrepareStatement;
|
|
5093
5103
|
} | {
|
|
5094
5104
|
"execute": ExecuteStatement;
|
|
5095
5105
|
} | {
|
|
@@ -10663,6 +10673,25 @@ declare type Predict = {
|
|
|
10663
10673
|
params_struct: Expression | null;
|
|
10664
10674
|
};
|
|
10665
10675
|
|
|
10676
|
+
/**
|
|
10677
|
+
* PREPARE statement (PostgreSQL/generic prepared statement definition)
|
|
10678
|
+
* Syntax: PREPARE name [(type, ...)] AS statement
|
|
10679
|
+
*/
|
|
10680
|
+
declare type PrepareStatement = {
|
|
10681
|
+
/**
|
|
10682
|
+
* The prepared statement name.
|
|
10683
|
+
*/
|
|
10684
|
+
name: Identifier;
|
|
10685
|
+
/**
|
|
10686
|
+
* Optional PostgreSQL parameter type list.
|
|
10687
|
+
*/
|
|
10688
|
+
parameter_types?: Array<DataType>;
|
|
10689
|
+
/**
|
|
10690
|
+
* The statement to execute when the prepared statement is invoked.
|
|
10691
|
+
*/
|
|
10692
|
+
statement: Expression;
|
|
10693
|
+
};
|
|
10694
|
+
|
|
10666
10695
|
/**
|
|
10667
10696
|
* PreviousDay
|
|
10668
10697
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
const __vite__wasmUrl = new URL("./polyglot_sql_wasm_bg.wasm",import.meta.url).href;
|
|
1
|
+
const __vite__wasmUrl = new URL("./polyglot_sql.wasm",import.meta.url).href;
|
|
3
2
|
|
|
4
3
|
const __vite__initWasm = async (opts = {}, url) => {
|
|
5
4
|
let result;
|