libsql-js icon indicating copy to clipboard operation
libsql-js copied to clipboard

Support readonly option

Open CodingDoug opened this issue 2 years ago • 1 comments

With better-sqlite3, the readonly option behaves as such:

  • Constructor fails when combined with an in-memory database

TypeError: In-memory/temporary databases cannot be readonly

  • Queries that mutate fail

SqliteError: attempt to write a readonly database

  • db.readonly set to true

This library does none of the above yet.

CodingDoug avatar Aug 31 '23 19:08 CodingDoug

Depends on https://github.com/libsql/libsql/issues/344

penberg avatar Sep 01 '23 11:09 penberg