DescriptionImplement sql::Connection::RazeAndClose().
Raze() clears out the database, but cannot be called within a
transaction. Close() can only be called once all statements have
cleared. Error callbacks happen while executing statements (thus
often in a transaction, and at least one statement is outstanding).
RazeAndClose() forcibly breaks outstanding transactions, calls Raze()
to clear the database, then calls Close() to close the handle. All
future operations against the database should fail safely (without
affecting storage and without crashing).
BUG=166419, 136846
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=181152
Patch Set 1 #
Total comments: 12
Patch Set 2 : Execute() and untracked changes, unit testsing. #
Total comments: 2
Patch Set 3 : Fix Open() to warn after RazeOnClose() w/o Close(). #Patch Set 4 : Disable DEATH test on android and ios. #
Messages
Total messages: 13 (0 generated)
|