/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-02-07 14:39:18 UTC
  • Revision ID: edam@waxworlds.org-20100207143918-gi030ojecbska8hw
- updated README
- set up project for use with autotools

Show diffs side-by-side

added added

removed removed

28
28
{
29
29
 
30
30
 
31
 
namespace detail
32
 
{
33
 
        // types to represent special manipulators for use with stream operators
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