32 #ifndef GUARD_SQLITE_RESULT_HPP_INCLUDED
33 #define GUARD_SQLITE_RESULT_HPP_INCLUDED
35 #include <boost/noncopyable.hpp>
40 struct result_construct_params_private;
126 void get_binary(
int idx,
void * buf,
size_t buf_size);
133 void get_binary(
int idx, std::vector<unsigned char> & vec);
151 #endif //GUARD_SQLITE_RESULT_HPP_INCLUDED
void get_binary(int idx, void *buf, size_t buf_size)
Used to retrieve a binary value.
type get_column_type(int idx)
Returns the type of the column.
int get_int(int idx)
Returns the data at the given index as 32-Bit Integer.
boost::int64_t get_int64(int idx)
Returns the data at the given index as 64-Bit Integer.
std::string get_string(int idx)
Returns the data at the given index as String.
std::string get_column_name(int idx)
Returns the column name at the given index.
int get_column_count()
Returns the number of columns.
variant_t get_variant(int index)
Retrieves a the current typ into variant_t.
std::string get_column_decltype(int idx)
Returns the type of the column.
size_t get_binary_size(int idx)
Returns the size of the data at the given index in bytes.
double get_double(int idx)
Returns the data at the given index as double.
construct_params m_params
result can only be created by a query object. An object of this class is not copyable.
boost::variant< unknown_t, int, boost::int64_t, long double, std::string, null_t, blob_ref_t > variant_t
bool next_row()
Increases the row index.
boost::shared_ptr< result_construct_params_private > construct_params
int get_row_count()
Returns the number of rows in the result.
query should be used to execute SQL queries An object of this class is not copyable ...
boost::shared_ptr< result > result_type