ledger-core
Public Member Functions | List of all members
ResultRow Class Reference
+ Inheritance diagram for ResultRow:
+ Collaboration diagram for ResultRow:

Public Member Functions

 ResultRow (sqlite3_stmt *stmt)
 
bool isNullAtPos (int32_t pos) override
 
std::string getColumnName (int32_t pos) override
 
int16_t getShortByPos (int32_t pos) override
 
int32_t getIntByPos (int32_t pos) override
 
float getFloatByPos (int32_t pos) override
 
double getDoubleByPos (int32_t pos) override
 
int64_t getLongByPos (int32_t pos) override
 
std::string getStringByPos (int32_t pos) override
 
std::shared_ptr< api::DatabaseBlobgetBlobByPos (int32_t pos) override
 

Member Function Documentation

◆ getBlobByPos()

std::shared_ptr<api::DatabaseBlob> ResultRow::getBlobByPos ( int32_t  pos)
inlineoverridevirtual

Get the value at the given position. The underneath value has to be an 16bit integer otherwise this call will fail.

Returns
the value at the given position.

Implements ledger::core::api::DatabaseResultRow.

◆ getColumnName()

std::string ResultRow::getColumnName ( int32_t  pos)
inlineoverridevirtual

Get the column name at the given position.

Returns
the column name.

Implements ledger::core::api::DatabaseResultRow.

◆ getDoubleByPos()

double ResultRow::getDoubleByPos ( int32_t  pos)
inlineoverridevirtual

Get the value at the given position. The underneath value has to be an 16bit integer otherwise this call will fail.

Returns
the value at the given position.

Implements ledger::core::api::DatabaseResultRow.

◆ getFloatByPos()

float ResultRow::getFloatByPos ( int32_t  pos)
inlineoverridevirtual

Get the value at the given position. The underneath value has to be an 16bit integer otherwise this call will fail.

Returns
the value at the given position.

Implements ledger::core::api::DatabaseResultRow.

◆ getIntByPos()

int32_t ResultRow::getIntByPos ( int32_t  pos)
inlineoverridevirtual

Get the value at the given position. The underneath value has to be an 16bit integer otherwise this call will fail.

Returns
the value at the given position.

Implements ledger::core::api::DatabaseResultRow.

◆ getLongByPos()

int64_t ResultRow::getLongByPos ( int32_t  pos)
inlineoverridevirtual

Get the value at the given position. The underneath value has to be an 16bit integer otherwise this call will fail.

Returns
the value at the given position.

Implements ledger::core::api::DatabaseResultRow.

◆ getShortByPos()

int16_t ResultRow::getShortByPos ( int32_t  pos)
inlineoverridevirtual

Get the value at the given position. The underneath value has to be an 16bit integer otherwise this call will fail.

Returns
the value at the given position.

Implements ledger::core::api::DatabaseResultRow.

◆ getStringByPos()

std::string ResultRow::getStringByPos ( int32_t  pos)
inlineoverridevirtual

Get the value at the given position. The underneath value has to be an 16bit integer otherwise this call will fail.

Returns
the value at the given position.

Implements ledger::core::api::DatabaseResultRow.

◆ isNullAtPos()

bool ResultRow::isNullAtPos ( int32_t  pos)
inlineoverridevirtual

Check if the value is NULL at the given position.

Returns
true if the value is NULL, false otherwise.

Implements ledger::core::api::DatabaseResultRow.


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