@polyglot-sql/sdk 0.4.2 → 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/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
  */
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polyglot-sql/sdk",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "SQL dialect translator powered by WebAssembly",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",