@petradb/engine 1.2.3 → 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 +4037 -4009
  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[]>;