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

  • Committer: edam
  • Date: 2010-07-23 09:17:03 UTC
  • Revision ID: edam@waxworlds.org-20100723091703-3siqjj6eeux9hupz
- added NEWS
- added library checks to configure.ac
- added query::iterators
- remove dependency that rows have on querys (since querys have to be dependent on rows for boost::iterator_facade to work)
- rows now have the handle to the sqlite3 statement and know a count of their row number
- added convenience function tht can be used to detect presence of sqlite3cc in other packages
- updated test-main
- renamed all subdir.mk files to emake.mk

Show diffs side-by-side

added added

removed removed

28
28
{
29
29
 
30
30
 
31
 
// types to represent special manipulators for use with stream operators
32
 
namespace detail
33
 
{
34
 
        struct null_t { };
35
 
        struct exec_t { };
36
 
        struct set_index_t { unsigned int _index; };
37
 
}
 
31
struct _null_t { };
 
32
struct _exec_t { };
 
33
struct _set_index_t { unsigned int _index; };
38
34
 
39
35
 
40
36
/**
42
38
 * specifies a NULL value to bind to a parameter. When used with a row's stream
43
39
 * operator, no value is fetched for a column.
44
40
 */
45
 
extern detail::null_t null;
 
41
extern _null_t null;
46
42
 
47
43
/**
48
44
 * Stream manipulator. When used with a statment's stream operator, this
52
48
 * operator, behaviour is the same except that it will not throw when the
53
49
 * execution returns results.
54
50
 */
55
 
extern detail::exec_t exec;
 
51
extern _exec_t exec;
56
52
 
57
53
/**
58
54
 * Stream manipulator. When used with a statment's or a row's stream operator,
60
56
 * column values.
61
57
 * @param index the new index
62
58
 */
63
 
detail::set_index_t set_index(
 
59
_set_index_t set_index(
64
60
        unsigned int index );
65
61
 
66
62