Maria result set implementation.
More...
#include <MariaResultSetImpl.h>
|
| MariaResultSetImpl (MYSQL_RES *res) noexcept |
|
| ~MariaResultSetImpl () noexcept override |
|
void | reset () noexcept override |
| Locate the first query record.
|
|
bool | next () noexcept override |
| Move to the next record.
|
|
bool | isNull (size_t index) const noexcept override |
| Determine if the returned result is null.
|
|
size_t | getColumns () const noexcept override |
| Get the number of columns in the record.
|
|
int32_t | getInteger (size_t index) const noexcept override |
| Get an integer value from the current record.
|
|
int64_t | getLong (size_t index) const noexcept override |
| Get a long integer value from the current record.
|
|
std::string_view | getString (size_t index) const noexcept override |
| Get a string from the current record.
|
|
double | getDouble (size_t index) const noexcept override |
| Get a double-precision floating-point value from the current record.
|
|
float | getFloat (size_t index) const noexcept override |
| Get a single-precision floating-point value from the current record.
|
|
std::optional< sese::DateTime > | getDateTime (size_t index) const noexcept override |
| Get a time data structure from the current record.
|
|
virtual | ~ResultSet () noexcept=default |
|
|
MYSQL_RES * | res |
|
MYSQL_ROW | row = nullptr |
|
Maria result set implementation.
◆ MariaResultSetImpl()
impl::MariaResultSetImpl::MariaResultSetImpl |
( |
MYSQL_RES * | res | ) |
|
|
explicitnoexcept |
◆ ~MariaResultSetImpl()
impl::MariaResultSetImpl::~MariaResultSetImpl |
( |
| ) |
|
|
overridenoexcept |
◆ getColumns()
size_t impl::MariaResultSetImpl::getColumns |
( |
| ) |
const |
|
nodiscardoverridevirtualnoexcept |
Get the number of columns in the record.
- Returns
- Number of columns in the result set record
Implements sese::db::ResultSet.
◆ getDateTime()
std::optional< sese::DateTime > impl::MariaResultSetImpl::getDateTime |
( |
size_t | index | ) |
const |
|
nodiscardoverridevirtualnoexcept |
◆ getDouble()
double impl::MariaResultSetImpl::getDouble |
( |
size_t | index | ) |
const |
|
nodiscardoverridevirtualnoexcept |
Get a double-precision floating-point value from the current record.
- Parameters
-
- Returns
- Double-precision floating-point value
Implements sese::db::ResultSet.
◆ getFloat()
float impl::MariaResultSetImpl::getFloat |
( |
size_t | index | ) |
const |
|
nodiscardoverridevirtualnoexcept |
Get a single-precision floating-point value from the current record.
- Parameters
-
- Returns
- Single-precision floating-point value
Implements sese::db::ResultSet.
◆ getInteger()
int32_t impl::MariaResultSetImpl::getInteger |
( |
size_t | index | ) |
const |
|
nodiscardoverridevirtualnoexcept |
Get an integer value from the current record.
- Parameters
-
- Returns
- Integer value
Implements sese::db::ResultSet.
◆ getLong()
int64_t impl::MariaResultSetImpl::getLong |
( |
size_t | index | ) |
const |
|
nodiscardoverridevirtualnoexcept |
Get a long integer value from the current record.
- Parameters
-
- Returns
- Long integer value
Implements sese::db::ResultSet.
◆ getString()
std::string_view impl::MariaResultSetImpl::getString |
( |
size_t | index | ) |
const |
|
nodiscardoverridevirtualnoexcept |
◆ isNull()
bool impl::MariaResultSetImpl::isNull |
( |
size_t | index | ) |
const |
|
nodiscardoverridevirtualnoexcept |
Determine if the returned result is null.
- Parameters
-
- Returns
- Whether it is null
Implements sese::db::ResultSet.
◆ next()
bool impl::MariaResultSetImpl::next |
( |
| ) |
|
|
nodiscardoverridevirtualnoexcept |
◆ reset()
void impl::MariaResultSetImpl::reset |
( |
| ) |
|
|
overridevirtualnoexcept |
◆ res
MYSQL_RES* sese::db::impl::MariaResultSetImpl::res |
|
protected |
◆ row
MYSQL_ROW sese::db::impl::MariaResultSetImpl::row = nullptr |
|
protected |
The documentation for this class was generated from the following files: