diff options
author | erikwright@chromium.org <erikwright@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-07 20:51:37 +0000 |
---|---|---|
committer | erikwright@chromium.org <erikwright@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-07 20:51:37 +0000 |
commit | 94f06382b22f8d91ecfdcb05b4277a9bef58fb98 (patch) | |
tree | 3f55d287a0358a308ed9a418976c7ad106d41bc2 /sql | |
parent | ce208f877048d4c7bbb57e0df045f0f39a9c80bf (diff) | |
download | chromium_src-94f06382b22f8d91ecfdcb05b4277a9bef58fb98.zip chromium_src-94f06382b22f8d91ecfdcb05b4277a9bef58fb98.tar.gz chromium_src-94f06382b22f8d91ecfdcb05b4277a9bef58fb98.tar.bz2 |
Add documentation regarding the nestability of sql::Transaction objects.
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
Diffstat (limited to 'sql')
-rw-r--r-- | sql/transaction.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/transaction.h b/sql/transaction.h index 210cb7f..7cf5379 100644 --- a/sql/transaction.h +++ b/sql/transaction.h @@ -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. @@ -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(); |