We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
null
1 parent 365c23a commit ced4dc7Copy full SHA for ced4dc7
2 files changed
types/lib/model.d.ts
@@ -35,7 +35,7 @@ export interface Transactionable {
35
/**
36
* Transaction to run query under
37
*/
38
- transaction?: Transaction;
+ transaction?: Transaction | null;
39
}
40
41
export interface SearchPathable {
types/test/transaction.ts
@@ -78,3 +78,9 @@ async function nestedTransact() {
78
});
79
await tr.commit();
80
81
+
82
+async function excludeFromTransaction() {
83
+ await sequelize.transaction(async t =>
84
+ await sequelize.query('SELECT 1', { transaction: null })
85
+ );
86
+}
0 commit comments