(dbPath: string, opts?: { readOnly?: boolean })
| 77 | private readonly _dbPath: string; |
| 78 | |
| 79 | constructor(dbPath: string, opts?: { readOnly?: boolean }) { |
| 80 | const { DatabaseSync } = loadNodeSqlite(); |
| 81 | this._dbPath = dbPath; |
| 82 | this._db = opts?.readOnly ? new DatabaseSync(dbPath, { readOnly: true }) : new DatabaseSync(dbPath); |
| 83 | } |
| 84 | |
| 85 | /** |
| 86 | * What a failed call throws: the error itself, or — for a "disk I/O error" |
nothing calls this directly
no test coverage detected