mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 07:56:01 +00:00
sqlite supports readonly
This commit is contained in:
@@ -52,8 +52,8 @@ function runStreamItem(client, sql, options, rowCounter) {
|
||||
const driver = {
|
||||
...driverBase,
|
||||
analyserClass: Analyser,
|
||||
async connect({ databaseFile }) {
|
||||
const pool = new Database(databaseFile);
|
||||
async connect({ databaseFile, isReadOnly }) {
|
||||
const pool = new Database(databaseFile, { readonly: !!isReadOnly });
|
||||
return pool;
|
||||
},
|
||||
async close(pool) {
|
||||
|
||||
Reference in New Issue
Block a user