/sqlite3cc

To get this branch, use:
bzr branch http://bzr.ed.am/sqlite3cc

« back to all changes in this revision

Viewing changes to src/transaction.cc

  • Committer: edam
  • Date: 2010-07-27 15:12:55 UTC
  • Revision ID: edam@waxworlds.org-20100727151255-goaqgdz4kj13q7gz
- update TODO
- added some missing includes for <string>
- changed usage of database::exec() to not require return code!
- prevented transaction_guard destructor from throwing an exception

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
}
54
54
 
55
55
 
56
 
sqlite::immediate_transaction::immediate_transaction(
57
 
        database &database )
58
 
        :
59
 
        basic_transaction( database )
60
 
{
61
 
}
62
 
 
63
 
 
64
 
void sqlite::immediate_transaction::begin()
65
 
{
66
 
        _database.exec( "BEGIN IMMEDIATE" );
67
 
}
68
 
 
69
 
 
70
56
sqlite::exclusive_transaction::exclusive_transaction(
71
57
        database &database )
72
58
        :