()
| 207 | } |
| 208 | |
| 209 | close(): void { |
| 210 | // node:sqlite's DatabaseSync.close() throws if already closed; make it |
| 211 | // idempotent to match better-sqlite3 (callers may close more than once). |
| 212 | if (this._db.isOpen) this._db.close(); |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | /** |