Implement sql::Connection::RazeAndClose().Raze() clears out the database, but cannot be called within atransaction. Close() can only be called once all statements havecleared. Error callbacks happen while executing statements (thusoften 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. Allfuture operations against the database should fail safely (withoutaffecting storage and without crashing).BUG=166419, 136846Review URL:https://chromiumcodereview.appspot.com/12096073git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181152 0039d316-1c4b-4281-b951-d872f2087c98
8 files changed