/sqlite3cc

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

« back to all changes in this revision

Viewing changes to include/sqlite3cc/transaction.h

  • Committer: edam
  • Date: 2010-07-27 15:46:42 UTC
  • Revision ID: edam@waxworlds.org-20100727154642-1uxrjkpxhp7xl6hq
- moved null_t, exec_t and set_index_t to detail namespace so only their extern instantiations are in the main namespace
- added immediate transation

Show diffs side-by-side

added added

removed removed

76
76
//                                                                implementation
77
77
protected:
78
78
 
79
 
        /** close any in-progress statements */
80
 
        void invalidate_queries();
81
 
 
82
 
        /** the database on which to act */
 
79
        /* the database on which to act */
83
80
        database &_database;
84
81
 
85
82
};
224
221
                database &database )
225
222
                :
226
223
                _transaction( database ),
227
 
                _database( database ),
228
224
                _released( false )
229
225
        {
230
226
                _transaction.begin();
260
256
//                                                                implementation
261
257
protected:
262
258
 
263
 
        /** the transaction */
 
259
        /* the transaction */
264
260
        T _transaction;
265
261
 
266
 
        /** the database */
267
 
        database &_database;
268
 
 
269
 
        /** have we released the transaction yet? */
 
262
        /* have we released the transaction yet? */
270
263
        bool _released;
271
264
 
272
265
};