/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: edam
  • Date: 2012-04-23 18:40:10 UTC
  • Revision ID: tim@ed.am-20120423184010-3zaiqkhxwequfaey
Removed an optimisation in command::step() (calling finalize() here prevents
the command from being reset() and reused), and added a wrapper for a
transaction's begin() method to transaction_guard (both thanks to Ron Wilson).

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
 
}