@petradb/engine 1.2.4 → 1.2.5

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.
Files changed (3) hide show
  1. package/index.d.ts +13 -1
  2. package/main.js +4 -4
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -85,6 +85,16 @@ export interface RollbackResult {
85
85
  command: 'rollback';
86
86
  }
87
87
 
88
+ export interface ExplainResult {
89
+ command: 'explain';
90
+ plan: string;
91
+ }
92
+
93
+ export interface CopyResult {
94
+ command: 'copy';
95
+ rowCount: number;
96
+ }
97
+
88
98
  export interface InsertResult {
89
99
  command: 'insert';
90
100
  result: Record<string, any>;
@@ -127,7 +137,9 @@ export type ExecuteResult =
127
137
  | DeallocateResult
128
138
  | BeginResult
129
139
  | CommitResult
130
- | RollbackResult;
140
+ | RollbackResult
141
+ | ExplainResult
142
+ | CopyResult;
131
143
 
132
144
  export interface PreparedStatement {
133
145
  execute(params?: any[], options?: ExecuteOptions): Promise<ExecuteResult[]>;
package/main.js CHANGED
@@ -5306,14 +5306,14 @@ $p.s6 = (function() {
5306
5306
  $p.asZ = (function(sql) {
5307
5307
  return new $c_Lio_github_edadma_petradb_engine_JSSession$PreparedStatementJS(this, this.YK().at0(sql));
5308
5308
  });
5309
- $p.close = (function() {
5310
- this.s6();
5309
+ $p.execute = (function(arg, ...rest) {
5310
+ return this.aoB(arg, ((rest[0] === (void 0)) ? (void 0) : rest[0]));
5311
5311
  });
5312
5312
  $p.prepare = (function(arg) {
5313
5313
  return this.asZ(arg);
5314
5314
  });
5315
- $p.execute = (function(arg, ...rest) {
5316
- return this.aoB(arg, ((rest[0] === (void 0)) ? (void 0) : rest[0]));
5315
+ $p.close = (function() {
5316
+ this.s6();
5317
5317
  });
5318
5318
  var $d_Lio_github_edadma_petradb_engine_JSSession = new $TypeData().i($c_Lio_github_edadma_petradb_engine_JSSession, "io.github.edadma.petradb.engine.JSSession", ({
5319
5319
  nW: 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@petradb/engine",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "Lightweight embeddable SQL database engine for JavaScript and TypeScript",
5
5
  "type": "module",
6
6
  "exports": {