libnick 2024.12.0
A cross-platform base for native Nickvision applications.
Loading...
Searching...
No Matches
Nickvision::Database::SqlValue Class Reference

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.
 

Detailed Description

A sqlite value.

Constructor & Destructor Documentation

◆ SqlValue()

Nickvision::Database::SqlValue::SqlValue ( sqlite3_value * value)

Constructs an SqlValue.

Parameters
valuesqlite3_value*

Member Function Documentation

◆ getBlob()

std::pair< const void *, size_t > Nickvision::Database::SqlValue::getBlob ( ) const

Gets a blob from a value.

Returns
A pair of the blob from the value and the blob's size

◆ getBool()

bool Nickvision::Database::SqlValue::getBool ( ) const

Gets a bool from a value.

Returns
The bool from the value

◆ getDouble()

double Nickvision::Database::SqlValue::getDouble ( ) const

Gets a double from a value.

Returns
The double from the value

◆ getInt()

int Nickvision::Database::SqlValue::getInt ( ) const

Gets an int from a value.

Returns
The int from the value

◆ getInt64()

sqlite3_int64 Nickvision::Database::SqlValue::getInt64 ( ) const

Gets an int64 from a value.

Returns
The int64 from the value

◆ getString()

std::string Nickvision::Database::SqlValue::getString ( ) const

Gets a string from a value.

Returns
The string from the value

The documentation for this class was generated from the following file: