22 #ifndef NDN_CXX_UTIL_SQLITE3_STATEMENT_HPP
23 #define NDN_CXX_UTIL_SQLITE3_STATEMENT_HPP
63 bind(
int index,
const char* value,
size_t size,
void(*destructor)(
void*));
74 bind(
int index,
const std::string& value,
void(*destructor)(
void*));
86 bind(
int index,
const void* value,
size_t size,
void(*destructor)(
void*));
97 bind(
int index,
const Block& block,
void(*destructor)(
void*));
107 bind(
int index,
int number);
148 operator sqlite3_stmt*();
151 sqlite3_stmt* m_stmt;
Represents a TLV element of the NDN packet format.
Wrap an SQLite3 prepared statement.
Sqlite3Statement(sqlite3 *database, const std::string &statement)
Initialize and prepare Sqlite3 statement.
int bind(int index, const char *value, size_t size, void(*destructor)(void *))
Bind a string to the statement.
int getInt(int column)
Get an integer from column.
const uint8_t * getBlob(int column)
Get a pointer of byte blob from column.
Block getBlock(int column)
Get a block from column.
~Sqlite3Statement()
Finalize the statement.
int getSize(int column)
Get the size of column.
int step()
Wrapper of sqlite3_step.
std::string getString(int column)
Get a string from column.