libnick 2024.12.0
A cross-platform base for native Nickvision applications.
|
A sqlite value. More...
#include <sqlvalue.h>
Public Member Functions | |
SqlValue (sqlite3_value *value) | |
Constructs an SqlValue. | |
int | getInt () const |
Gets an int from a value. | |
sqlite3_int64 | getInt64 () const |
Gets an int64 from a value. | |
double | getDouble () const |
Gets a double from a value. | |
bool | getBool () const |
Gets a bool from a value. | |
std::string | getString () const |
Gets a string from a value. | |
std::pair< const void *, size_t > | getBlob () const |
Gets a blob from a value. | |
A sqlite value.
Nickvision::Database::SqlValue::SqlValue | ( | sqlite3_value * | value | ) |
Constructs an SqlValue.
value | sqlite3_value* |
std::pair< const void *, size_t > Nickvision::Database::SqlValue::getBlob | ( | ) | const |
Gets a blob from a value.
bool Nickvision::Database::SqlValue::getBool | ( | ) | const |
Gets a bool from a value.
double Nickvision::Database::SqlValue::getDouble | ( | ) | const |
Gets a double from a value.
int Nickvision::Database::SqlValue::getInt | ( | ) | const |
Gets an int from a value.
sqlite3_int64 Nickvision::Database::SqlValue::getInt64 | ( | ) | const |
Gets an int64 from a value.
std::string Nickvision::Database::SqlValue::getString | ( | ) | const |
Gets a string from a value.