Audacity 3.2.0
|
A class representing a row in a result set. More...
#include <Statement.h>
Public Member Functions | |
bool | Get (int columnIndex, bool &value) const |
bool | Get (int columnIndex, int &value) const |
bool | Get (int columnIndex, long &value) const |
bool | Get (int columnIndex, long long &value) const |
bool | Get (int columnIndex, float &value) const |
bool | Get (int columnIndex, double &value) const |
bool | Get (int columnIndex, std::string &value) const |
template<typename T > | |
T | GetOr (int columnIndex, T defaultValue=T()) const |
int | GetColumnCount () const |
int64_t | GetColumnBytes (int columnIndex) const |
int64_t | ReadData (int columnIndex, void *buffer, int64_t maxSize) const |
Private Member Functions | |
Row (StatementHandlePtr statement, std::vector< Error > &errors) noexcept | |
Row ()=default | |
template<typename Reader > | |
bool | DoGet (Reader reader, int columnIndex) const |
Private Attributes | |
StatementHandlePtr | mStatement {} |
std::vector< Error > * | mErrors {} |
int | mColumnsCount { 0 } |
Friends | |
class | RowIterator |
A class representing a row in a result set.
Indices are 0-based
Definition at line 31 of file Statement.h.
|
explicitprivatenoexcept |
Definition at line 340 of file Statement.cpp.
|
privatedefault |
|
private |
Definition at line 349 of file Statement.cpp.
References mColumnsCount, mErrors, and mStatement.
Referenced by Get().
bool audacity::sqlite::Row::Get | ( | int | columnIndex, |
bool & | value | ||
) | const |
Definition at line 374 of file Statement.cpp.
References DoGet(), and mStatement.
Referenced by audacity::cloud::audiocom::sync::CloudProjectsDatabase::DoGetProjectData().
bool audacity::sqlite::Row::Get | ( | int | columnIndex, |
double & | value | ||
) | const |
Definition at line 408 of file Statement.cpp.
References DoGet(), and mStatement.
bool audacity::sqlite::Row::Get | ( | int | columnIndex, |
float & | value | ||
) | const |
Definition at line 397 of file Statement.cpp.
References DoGet(), and mStatement.
bool audacity::sqlite::Row::Get | ( | int | columnIndex, |
int & | value | ||
) | const |
Definition at line 379 of file Statement.cpp.
References DoGet(), and mStatement.
bool audacity::sqlite::Row::Get | ( | int | columnIndex, |
long & | value | ||
) | const |
Definition at line 384 of file Statement.cpp.
References DoGet(), and mStatement.
bool audacity::sqlite::Row::Get | ( | int | columnIndex, |
long long & | value | ||
) | const |
Definition at line 392 of file Statement.cpp.
References DoGet(), and mStatement.
bool audacity::sqlite::Row::Get | ( | int | columnIndex, |
std::string & | value | ||
) | const |
Definition at line 414 of file Statement.cpp.
References DoGet(), and mStatement.
int64_t audacity::sqlite::Row::GetColumnBytes | ( | int | columnIndex | ) | const |
Definition at line 437 of file Statement.cpp.
References mStatement.
Referenced by ReadData().
int audacity::sqlite::Row::GetColumnCount | ( | ) | const |
Definition at line 432 of file Statement.cpp.
References mStatement.
|
inline |
Definition at line 47 of file Statement.h.
References BasicUI::Get().
int64_t audacity::sqlite::Row::ReadData | ( | int | columnIndex, |
void * | buffer, | ||
int64_t | maxSize | ||
) | const |
Definition at line 442 of file Statement.cpp.
References GetColumnBytes(), min(), mStatement, and size.
|
friend |
Definition at line 33 of file Statement.h.
|
private |
Definition at line 64 of file Statement.h.
Referenced by DoGet().
|
private |
Definition at line 63 of file Statement.h.
Referenced by DoGet().
|
private |
Definition at line 62 of file Statement.h.
Referenced by DoGet(), Get(), GetColumnBytes(), GetColumnCount(), and ReadData().