lintel 0.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lintel::sqlite::Result Class Reference

#include <Result.h>

Public Member Functions

void add (const db::Arguments &arguments)
 
std::string getValue (int row, int attribute)
 
int getNumOfAttributes () const
 
int getSize () const
 
db::Arguments & of (std::size_t pos)
 

Detailed Description

Wraps an SQLite query result with row/column access.

Member Function Documentation

◆ add()

void lintel::sqlite::Result::add ( const db::Arguments &  arguments)

Adds a row of arguments to the result.

Parameters
argumentsthe row arguments

◆ getNumOfAttributes()

int lintel::sqlite::Result::getNumOfAttributes ( ) const
Returns
the number of columns in the result

◆ getSize()

int lintel::sqlite::Result::getSize ( ) const
Returns
the number of rows in the result

◆ getValue()

std::string lintel::sqlite::Result::getValue ( int  row,
int  attribute 
)

Retrieves a value at the given row and column.

Parameters
rowthe row index
attributethe column index
Returns
the value as a string

◆ of()

db::Arguments & lintel::sqlite::Result::of ( std::size_t  pos)

Accesses a row's arguments (mutable).

Parameters
posthe row index
Returns
reference to the Arguments for that row

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