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