@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 +1 -0
- package/dist/index.js +3 -0
- package/package.json +1 -1
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.
|