32#ifndef GUARD_SQLITE_COMMAND_HPP_INCLUDED
33#define GUARD_SQLITE_COMMAND_HPP_INCLUDED
35#include <boost/cstdint.hpp>
36#include <boost/noncopyable.hpp>
102 void bind(
int idx, boost::int64_t v);
114 void bind(
int idx, std::string
const & v);
121 void bind(
int idx,
void const * buf,
size_t buf_size);
128 void bind(
int idx, std::vector<unsigned char>
const & v);
null_type nil
nil is used instead of NULL within the operator % syntax in this wrapper
command is the base class of all sql command classes An object of this class is not copyable
void bind(int idx, void const *buf, size_t buf_size)
binds the binary/blob buf to the given 1 based index
void bind(int idx)
binds NULL to the given 1 based index
void bind(int idx, double v)
binds the double v to the given 1 based index
bool emit()
emit executes the sql command If you have used placeholders you must have replaced all placeholders
void bind(int idx, boost::int64_t v)
binds the 64-Bit integer v to the given 1 based index
void bind(int idx, int v)
binds the 32-Bit integer v to the given 1 based index
virtual ~command()
command destructor
void bind(int idx, std::vector< unsigned char > const &v)
binds the binary/blob v to the given 1 based index
void clear()
clear is used if you'd like to reuse a command object
command(connection &con, std::string const &sql)
command constructor
struct sqlite3 * get_handle()
command & operator%(null_type const &p)
replacement for void command::bind(int idx); To use this operator% you have to use the global object ...
void bind(int idx, std::string const &v)
binds the text/string v to the given 1 based index
bool operator()()
works exactly like the method command::emit
connection is used to open, close, attach and detach a database. Further it has to be passed to all c...
null_type is an empty type used to represent NULL values