File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ export class ConnectionPoolImpl
70
70
args ?: SqliteArguments ,
71
71
options ?: ( QueryOptions & ReserveConnectionOptions ) | undefined
72
72
) : Promise < RunResult > {
73
- const r = await this . reserveConnection ( options ) ;
73
+ const r = await this . reserveConnection ( { readonly : false , ... options } ) ;
74
74
try {
75
75
return r . connection . run ( query , args , options ) ;
76
76
} finally {
@@ -108,7 +108,7 @@ export class ConnectionPoolImpl
108
108
args ?: SqliteArguments ,
109
109
options ?: ( StreamOptions & ReserveConnectionOptions ) | undefined
110
110
) : AsyncGenerator < T [ ] , any , unknown > {
111
- const r = await this . reserveConnection ( options ) ;
111
+ const r = await this . reserveConnection ( { readonly : true , ... options } ) ;
112
112
try {
113
113
return r . stream < T > ( query , args , options ) ;
114
114
} finally {
You can’t perform that action at this time.
0 commit comments