libsql-js
libsql-js copied to clipboard
Support readonly option
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.readonlyset to true
This library does none of the above yet.
Depends on https://github.com/libsql/libsql/issues/344