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
connection is used to open, close, attach and detach a database. Further it has to be passed to all c...
virtual ~command()
command destructor
null_type is an empty type used to represent NULL values
command is the base class of all sql command classes An object of this class is not copyable
bool emit()
emit executes the sql command If you have used placeholders you must have replaced all placeholders
bool operator()()
works exactly like the method command::emit
null_type nil
nil is used instead of NULL within the operator % syntax in this wrapper
void bind(int idx)
binds NULL to the given 1 based index
void clear()
clear is used if you'd like to reuse a command object
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
struct sqlite3 * get_handle()