File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/packages/dumbo/src/storage/sqlite/core/pool Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -105,9 +105,10 @@ export const sqliteAlwaysNewClientPool = <
105
105
options : {
106
106
connector : ConnectorType ;
107
107
database ?: string | undefined ;
108
+ allowNestedTransactions ?: boolean ;
108
109
} & SQLiteFileNameOrConnectionString ,
109
110
) : SQLiteAmbientClientPool < ConnectorType > => {
110
- const { connector } = options ;
111
+ const { connector, allowNestedTransactions } = options ;
111
112
112
113
return createConnectionPool ( {
113
114
connector : connector ,
@@ -126,7 +127,7 @@ export const sqliteAlwaysNewClientPool = <
126
127
connector,
127
128
type : 'Client' ,
128
129
connect,
129
- allowNestedTransactions : false ,
130
+ allowNestedTransactions : allowNestedTransactions ?? false ,
130
131
close : ( client ) => client . close ( ) ,
131
132
} ) ;
132
133
} ,
You can’t perform that action at this time.
0 commit comments