tursodatabase / libsql-js

A better-sqlite3 compatible API for libSQL that supports Bun, Deno, and Node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support readonly option

CodingDoug opened this issue · 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.