/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: 2012-01-23 17:37:17 UTC
  • Revision ID: edam@waxworlds.org-20120123173717-yj4zb1nv7d39va8d
Tags: 0.1
prep for release

Show diffs side-by-side

added added

removed removed

24
24
#define SQLITE3CC_MANIPULATOR_H_
25
25
 
26
26
 
27
 
#include <string>
28
 
 
29
 
 
30
27
namespace sqlite
31
28
{
32
29
 
37
34
        struct null_t { };
38
35
        struct exec_t { };
39
36
        struct set_index_t { unsigned int _index; };
40
 
        struct blob_t { const char *value; unsigned int value_length; };
41
37
}
42
38
 
43
39
 
68
64
detail::set_index_t set_index(
69
65
        unsigned int index );
70
66
 
71
 
/**
72
 
 * Stream manipulator.  When used with a statement's or a row's stream operator,
73
 
 * this indicates that the data contained within is to be bound as a blob,
74
 
 * rather than text.
75
 
 *
76
 
 * @param value the blob data value
77
 
 * @param value_length the length of the blob data
78
 
 */
79
 
detail::blob_t blob(
80
 
        const char *value,
81
 
        unsigned int value_length );
82
 
 
83
 
/**
84
 
 * Stream manipulator.  When used with a statement's or a row's stream operator,
85
 
 * this indicates that the data contained within is to be bound as a blob,
86
 
 * rather than text.
87
 
 *
88
 
 * @param value the blob data value
89
 
 */
90
 
detail::blob_t blob(
91
 
        const std::string &value );
92
 
 
93
67
 
94
68
} // namespace sqlite
95
69