Closed Bug 1664143 Opened 5 years ago Closed 5 years ago

Introduce ExecuteSimpleSQLSequence helper function

Categories

(Core :: Storage: IndexedDB, task)

task

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: nobody → sgiesecke
Status: NEW → ASSIGNED

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
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: