@petradb/engine 1.2.12 → 1.2.13

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 (4) hide show
  1. package/README.md +1 -1
  2. package/index.d.ts +1 -1
  3. package/main.js +3867 -3866
  4. package/package.json +1 -1
package/README.md CHANGED
@@ -31,7 +31,7 @@ Data survives restarts with crash-safe durable storage in a single file:
31
31
  ```javascript
32
32
  const db = new Session({ storage: 'persistent', path: './mydb' });
33
33
  // ... use the database ...
34
- db.close();
34
+ await db.close();
35
35
  ```
36
36
 
37
37
  Also available: `{ storage: 'text', path: './data.ptxt' }` for human-readable text files.
package/index.d.ts CHANGED
@@ -149,5 +149,5 @@ export class Session {
149
149
  constructor(options?: SessionOptions);
150
150
  execute(sql: string, options?: ExecuteOptions): Promise<ExecuteResult[]>;
151
151
  prepare(sql: string): PreparedStatement;
152
- close(): void;
152
+ close(): Promise<void>;
153
153
  }