Skip to content

Commit

Permalink
Add documentation regarding the nestability of sql::Transaction objects.
Browse files Browse the repository at this point in the history
This is because I wondered if they were nestable, looked here for documentation to that affect, didn't see any, and thus assumed they weren't (I also googled sqlite3 nested transactions and saw that they were not natively supported by the DB - I think that the conclusion I drew is probably the one that most readers would have drawn).

BUG=None
TEST=Ask a random developer if sql::Transaction transactions may be nested.


Review URL: http://codereview.chromium.org/9624006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125448 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
erikwright@chromium.org committed Mar 7, 2012
1 parent ce208f8 commit 94f0638
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sql/transaction.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

Expand All @@ -19,6 +19,9 @@ class SQL_EXPORT Transaction {
// transaction. If you have begun a transaction and not committed it, the
// constructor will roll back the transaction. If you want to commit, you
// need to manually call Commit before this goes out of scope.
//
// Nested transactions are supported. See sql::Connection::BeginTransaction
// for details.
explicit Transaction(Connection* connection);
~Transaction();

Expand Down

0 comments on commit 94f0638

Please sign in to comment.