/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/command.h

  • Committer: edam
  • Date: 2010-07-29 09:16:26 UTC
  • Revision ID: edam@waxworlds.org-20100729091626-h8fmg0r74eyfo5ae
- fixed error caused by finialising in-progress queries during rollback that were later finaliased by RAII.

Show diffs side-by-side

added added

removed removed

25
25
 
26
26
 
27
27
#include <sqlite3cc/basic_statement.h>
28
 
#include <boost/thread/recursive_mutex.hpp>
29
28
 
30
29
 
31
30
namespace sqlite
83
82
         * @return an sqlite error code
84
83
         * @see sqlite3_step()
85
84
         */
86
 
        virtual int step();
 
85
        int step();
87
86
 
88
87
        /**
89
88
         * Execute the command. This is the same as doing a step().
140
139
        /** the rowid of the last successful insert command */
141
140
        long long _last_insert_rowid;
142
141
 
143
 
        /** exclusive use during command mutex */
144
 
        static boost::recursive_mutex _command_mutex;
145
 
 
146
142
};
147
143
 
148
144
 
 
145
// template specialisations for basic_statement::operator <<()
 
146
template< >
 
147
basic_statement &basic_statement::operator << < detail::exec_t >(
 
148
        const detail::exec_t & );
 
149
 
 
150
 
149
151
} // namespace sqlite
150
152
 
151
153