Currently all databases are opened with read and write permissions by default, with no way to change this setting. We should provide a mechanism for setting the database type to read only, and supporting other SQLite database options.
Read only databases should only require deno read permissions, while write and create databases will still require read and write permissions. This will involve passing the flags through to sqlite3_open_v2, and then handling the flags we set in out custom VFS.
Currently all databases are opened with read and write permissions by default, with no way to change this setting. We should provide a mechanism for setting the database type to read only, and supporting other SQLite database options.
Read only databases should only require deno read permissions, while write and create databases will still require read and write permissions. This will involve passing the flags through to
sqlite3_open_v2
, and then handling the flags we set in out custom VFS.Proposed (backwards compatible) API change:
Potential additional flags to support
uri?: boolean = false
memory?: boolean = false