@inflector/optima 1.0.9 → 1.0.10

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.ts CHANGED
@@ -312,6 +312,7 @@ declare class OptimaDB<T extends Record<string, OptimaTable>> {
312
312
  execute(sql: string): Promise<DBRow[]>;
313
313
  getTables(): Promise<string[]>;
314
314
  getDiskSize(): Promise<unknown>;
315
+ close(): void;
315
316
  /**
316
317
  * Runs a function within a transaction.
317
318
  * Re-throws error after rollback so caller handles logic failure.
package/dist/index.js CHANGED
@@ -879,6 +879,9 @@ var OptimaDB = class _OptimaDB {
879
879
  const result = await this.execute("PRAGMA database_size;");
880
880
  return result[0];
881
881
  }
882
+ close() {
883
+ this.connection.closeSync();
884
+ }
882
885
  /**
883
886
  * Runs a function within a transaction.
884
887
  * Re-throws error after rollback so caller handles logic failure.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inflector/optima",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "type": "module",
5
5
  "author": "Inflector",
6
6
  "main": "./dist/index.js",