-
-
Notifications
You must be signed in to change notification settings - Fork 642
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Throw if not using Dexie.Promise from transaction scopes.
This commit will hopefully help to find errors when using async / await or Promise.all() within transaction scopes. Before this commit, those things could be done and the code seemed to work perfectly! The problem was that the transaction was not used. Instead it was executing the stuff transactionless, (each operation did its own transaction), wich is both slow and error prone.
- Loading branch information
1 parent
2d42749
commit 1214974
Showing
5 changed files
with
45 additions
and
5 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
} | ||
}, | ||
"env": { | ||
"browser": true | ||
}, | ||
"rules": { | ||
"no-undef": ["error"] | ||
}, | ||
"globals": { | ||
"Promise": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters