/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-23 12:57:07 UTC
  • Revision ID: edam@waxworlds.org-20100723125707-qu9jk9vvg2uewx7t
- cleaned up test-main
- fixed comment type
- made sqlite::exec() throw instead of returning sqlite error code

Show diffs side-by-side

added added

removed removed

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