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

  • Committer: edam
  • Date: 2010-07-29 06:28:53 UTC
  • Revision ID: edam@waxworlds.org-20100729062853-4i2fec52m86mh724
- made basic_statement::step() protected, for use by query and command only
- moved basic_statement::operator<<() to command and query instead; one needs to accept sqlite::exec, the other doesn't
- added tests for query::operator<<()
- added code to invlaidate in-progress queries during any transaction rollbacks (currently segfaults in basic_statement::finalize())
- added new sqlite_error constructor that obtains a full error message
- implemented database::database_mutex_guard class
- swapped command's step mutex in favour of the database mutex

Show diffs side-by-side

added added

removed removed

36
36
{
37
37
 
38
38
 
39
 
struct _null_t;
40
 
struct _set_index_t;
41
39
class query;
 
40
namespace detail {
 
41
        struct null_t;
 
42
        struct set_index_t;
 
43
}
42
44
 
43
45
 
44
46
/**
166
168
         * Stream operator for use with set_index().
167
169
         */
168
170
        row &operator >>(
169
 
                _set_index_t t );
 
171
                detail::set_index_t t );
170
172
 
171
173
//______________________________________________________________________________
172
174
//                                                                implementation
180
182
        /** index used when auto-column-getting */
181
183
        unsigned int _column_index;
182
184
 
183
 
        /** the index of thi row */
 
185
        /** the index of this row */
184
186
        unsigned long long _index;
185
187
 
186
188
};
188
190
 
189
191
// template specialisations
190
192
template< >
191
 
row &row::operator >> < _null_t >(
192
 
        _null_t & );
 
193
row &row::operator >> < detail::null_t >(
 
194
        detail::null_t & );
193
195
 
194
196
 
195
197
} // namespace sqlite