22 #ifndef NDN_UTIL_SQLITE3_STATEMENT_HPP 23 #define NDN_UTIL_SQLITE3_STATEMENT_HPP 25 #include "../encoding/block.hpp" 64 bind(
int index,
const char* value,
size_t size,
void(*destructor)(
void*));
75 bind(
int index,
const std::string& value,
void(*destructor)(
void*));
87 bind(
int index,
const void* value,
size_t size,
void(*destructor)(
void*));
98 bind(
int index,
const Block& block,
void(*destructor)(
void*));
108 bind(
int index,
int number);
149 operator sqlite3_stmt*();
152 sqlite3_stmt* m_stmt;
158 #endif // NDN_UTIL_SQLITE3_STATEMENT_HPP Copyright (c) 2013-2017 Regents of the University of California.
int getSize(int column)
get the size of column.
~Sqlite3Statement()
finalize the statement
Represents a TLV element of NDN packet format.
Sqlite3Statement(sqlite3 *database, const std::string &statement)
initialize and prepare Sqlite3 statement
Block getBlock(int column)
get a block from column.
const uint8_t * getBlob(int column)
get a pointer of byte blob from column.
int bind(int index, const char *value, size_t size, void(*destructor)(void *))
bind a string to the statement
std::string getString(int column)
get a string from column.
int step()
wrapper of sqlite3_step
wrap an SQLite3 prepared statement
int getInt(int column)
get an integer from column.