Skip to content

Commit ab56176

Browse files
davecosecoskardudycz
authored andcommitted
Added option parameter to sqliteAlwaysNewClientPool and allowNestedTransaction pass through
1 parent 0bfd1af commit ab56176

File tree

1 file changed

+3
-2
lines changed
  • src/packages/dumbo/src/storage/sqlite/core/pool

1 file changed

+3
-2
lines changed

src/packages/dumbo/src/storage/sqlite/core/pool/pool.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,10 @@ export const sqliteAlwaysNewClientPool = <
105105
options: {
106106
connector: ConnectorType;
107107
database?: string | undefined;
108+
allowNestedTransactions?: boolean;
108109
} & SQLiteFileNameOrConnectionString,
109110
): SQLiteAmbientClientPool<ConnectorType> => {
110-
const { connector } = options;
111+
const { connector, allowNestedTransactions } = options;
111112

112113
return createConnectionPool({
113114
connector: connector,
@@ -126,7 +127,7 @@ export const sqliteAlwaysNewClientPool = <
126127
connector,
127128
type: 'Client',
128129
connect,
129-
allowNestedTransactions: false,
130+
allowNestedTransactions: allowNestedTransactions ?? false,
130131
close: (client) => client.close(),
131132
});
132133
},

0 commit comments

Comments
 (0)