()
| 121 | } |
| 122 | |
| 123 | close(): void { |
| 124 | // node:sqlite's DatabaseSync.close() throws if already closed; make it |
| 125 | // idempotent to match better-sqlite3 (callers may close more than once). |
| 126 | if (this._db.isOpen) this._db.close(); |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | /** |