/sqlite3cc

To get this branch, use:
bzr branch http://bzr.ed.am/sqlite3cc

« back to all changes in this revision

Viewing changes to src/manipulator.cc

  • Committer: Tim Marston
  • Date: 2015-02-26 08:56:26 UTC
  • Revision ID: tim@ed.am-20150226085626-vba9c55uz3ta094h
improved support for blobs: added bind_blob(), added blob_t for binding stream
operators and blob() creation function; detect blob column type in row::column()

Show diffs side-by-side

added added

removed removed

34
34
        detail::set_index_t t = { index };
35
35
        return t;
36
36
}
 
37
 
 
38
 
 
39
sqlite::detail::blob_t sqlite::blob(
 
40
        const char *value,
 
41
        unsigned int value_length )
 
42
{
 
43
        detail::blob_t t = { value, value_length };
 
44
        return t;
 
45
}
 
46
 
 
47
 
 
48
sqlite::detail::blob_t sqlite::blob(
 
49
        const std::string &value )
 
50
{
 
51
        return blob( value.c_str(), value.length() );
 
52
}