Closed
Bug 1664143
Opened 5 years ago
Closed 5 years ago
Introduce ExecuteSimpleSQLSequence helper function
Categories
(Core :: Storage: IndexedDB, task)
Core
Storage: IndexedDB
Tracking
()
RESOLVED
FIXED
84 Branch
Tracking | Status | |
---|---|---|
firefox84 | --- | fixed |
People
(Reporter: sg, Assigned: sg)
Details
Attachments
(1 file)
A nsresult ExecuteSimpleSQLSequence(mozIStorageConnection& aConnection, Span<const nsLiteralCString> aSQLCommands)
helper function could be used to execute a sequence of SQL statements, instead of having individual calls to ExecuteSImpleSQL
. This would make the code more straightforward and smaller.
However, we should ensure that failures of an individual SQL statement are properly logged. See also discussion in https://phabricator.services.mozilla.com/D89617#inline-508627
Assignee | ||
Comment 1•5 years ago
|
||
Updated•5 years ago
|
Assignee: nobody → sgiesecke
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•5 years ago
|
||
For ExecuteCachedStatement
a similar thing should be done.
Pushed by sgiesecke@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2cfe3f985d90
Use IDB_TRY in Create*Tables and use a ExecuteSimpleSQLSequence helper function. r=dom-workers-and-storage-reviewers,janv
Comment 4•5 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
status-firefox84:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•