@petradb/engine 1.2.4 → 1.2.6

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
@@ -5309,12 +5309,12 @@ $p.asZ = (function(sql) {
5309
5309
  $p.close = (function() {
5310
5310
  this.s6();
5311
5311
  });
5312
- $p.prepare = (function(arg) {
5313
- return this.asZ(arg);
5314
- });
5315
5312
  $p.execute = (function(arg, ...rest) {
5316
5313
  return this.aoB(arg, ((rest[0] === (void 0)) ? (void 0) : rest[0]));
5317
5314
  });
5315
+ $p.prepare = (function(arg) {
5316
+ return this.asZ(arg);
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
5320
5320
  }));
@@ -43363,7 +43363,7 @@ function $c_Lio_github_edadma_petradb_engine_SQLParser$() {
43363
43363
  this.a1R = null;
43364
43364
  $n_Lio_github_edadma_petradb_engine_SQLParser$ = this;
43365
43365
  this.u = new $c_Lio_github_edadma_petradb_engine_SQLParser$$anon$1();
43366
- this.a1R = $m_sci_Set$().ij($ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), $m_sjsr_package$().gE(new ($d_T.r().C)(["action", "add", "all", "alter", "and", "any", "array", "as", "asc", "begin", "between", "bigint", "bigserial", "boolean", "by", "bytea", "cascade", "case", "cast", "char", "check", "column", "commit", "conflict", "constraint", "copy", "create", "cross", "current_timestamp", "database", "date", "deallocate", "decimal", "default", "delete", "desc", "distinct", "do", "double", "drop", "else", "end", "enum", "except", "exec", "execute", "exists", "explain", "extract", "false", "first", "float", "for", "foreign", "from", "full", "group", "having", "if", "ilike", "in", "index", "inner", "insert", "int", "integer", "indexes", "intersect", "interval", "into", "is", "join", "json", "jsonb", "key", "keys", "last", "lateral", "left", "like", "limit", "no", "not", "nothing", "null", "nulls", "numeric", "offset", "on", "or", "order", "outer", "overlay", "overlaps", "placing", "precision", "prepare", "primary", "procedure", "real", "references", "rename", "restrict", "returning", "right", "rollback", "select", "serial", "set", "show", "smallint", "smallserial", "some", "symmetric", "columns", "table", "text", "then", "time", "timetz", "timestamp", "to", "transaction", "true", "truncate", "type", "union", "unique", "unknown", "update", "uuid", "values", "varchar", "when", "where", "with", "without", "zone"]))));
43366
+ this.a1R = $m_sci_Set$().ij($ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), $m_sjsr_package$().gE(new ($d_T.r().C)(["action", "add", "all", "alter", "and", "any", "array", "as", "asc", "begin", "between", "bigint", "bigserial", "boolean", "by", "bytea", "cascade", "case", "cast", "char", "check", "column", "commit", "conflict", "constraint", "copy", "create", "cross", "current_timestamp", "database", "date", "deallocate", "decimal", "default", "delete", "desc", "distinct", "do", "double", "drop", "else", "end", "enum", "except", "exec", "execute", "exists", "explain", "extract", "false", "first", "float", "for", "foreign", "from", "full", "group", "having", "if", "ilike", "in", "index", "inner", "insert", "int", "integer", "indexes", "intersect", "interval", "into", "is", "join", "json", "jsonb", "last", "lateral", "left", "like", "limit", "no", "not", "nothing", "null", "nulls", "numeric", "offset", "on", "or", "order", "outer", "overlay", "overlaps", "placing", "precision", "prepare", "primary", "procedure", "real", "references", "rename", "restrict", "returning", "right", "rollback", "select", "serial", "set", "show", "smallint", "smallserial", "some", "symmetric", "columns", "table", "text", "then", "time", "timetz", "timestamp", "to", "transaction", "true", "truncate", "type", "union", "unique", "unknown", "update", "uuid", "values", "varchar", "when", "where", "with", "without", "zone"]))));
43367
43367
  }
43368
43368
  $p = $c_Lio_github_edadma_petradb_engine_SQLParser$.prototype = new $h_O();
43369
43369
  $p.constructor = $c_Lio_github_edadma_petradb_engine_SQLParser$;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@petradb/engine",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "description": "Lightweight embeddable SQL database engine for JavaScript and TypeScript",
5
5
  "type": "module",
6
6
  "exports": {