|
Lightweight 0.20251202.0
|
API for reading an SQL query result set. More...
#include <SqlStatement.hpp>
Public Member Functions | |
| LIGHTWEIGHT_FORCE_INLINE | SqlResultCursor (SqlStatement &stmt) noexcept |
| SqlResultCursor (SqlResultCursor const &)=delete | |
| SqlResultCursor & | operator= (SqlResultCursor const &)=delete |
| constexpr | SqlResultCursor (SqlResultCursor &&other) noexcept |
| constexpr SqlResultCursor & | operator= (SqlResultCursor &&other) noexcept |
| LIGHTWEIGHT_FORCE_INLINE size_t | NumRowsAffected () const |
| Retrieves the number of rows affected by the last query. | |
| LIGHTWEIGHT_FORCE_INLINE size_t | NumColumnsAffected () const |
| Retrieves the number of columns affected by the last query. | |
| template<SqlOutputColumnBinder... Args> | |
| LIGHTWEIGHT_FORCE_INLINE void | BindOutputColumns (Args *... args) |
| template<SqlOutputColumnBinder T> | |
| LIGHTWEIGHT_FORCE_INLINE void | BindOutputColumn (SQLUSMALLINT columnIndex, T *arg) |
| LIGHTWEIGHT_FORCE_INLINE bool | FetchRow () |
| Fetches the next row of the result set. | |
| template<SqlGetColumnNativeType T> | |
| LIGHTWEIGHT_FORCE_INLINE bool | GetColumn (SQLUSMALLINT column, T *result) const |
| template<SqlGetColumnNativeType T> | |
| LIGHTWEIGHT_FORCE_INLINE T | GetColumn (SQLUSMALLINT column) const |
| Retrieves the value of the column at the given index for the currently selected row. | |
| template<SqlGetColumnNativeType T> | |
| LIGHTWEIGHT_FORCE_INLINE std::optional< T > | GetNullableColumn (SQLUSMALLINT column) const |
| template<SqlGetColumnNativeType T> | |
| T | GetColumnOr (SQLUSMALLINT column, T &&defaultValue) const |
API for reading an SQL query result set.
Definition at line 296 of file SqlStatement.hpp.
|
inlineexplicitnoexcept |
Definition at line 299 of file SqlStatement.hpp.
|
inlineconstexprnoexcept |
Definition at line 308 of file SqlStatement.hpp.
|
inline |
Definition at line 324 of file SqlStatement.hpp.
|
inlineconstexprnoexcept |
Definition at line 314 of file SqlStatement.hpp.
|
inline |
Retrieves the number of rows affected by the last query.
Definition at line 334 of file SqlStatement.hpp.
|
inline |
Retrieves the number of columns affected by the last query.
Definition at line 340 of file SqlStatement.hpp.
|
inline |
Binds the given arguments to the prepared statement to store the fetched data to.
The statement must be prepared before calling this function.
Definition at line 349 of file SqlStatement.hpp.
|
inline |
Definition at line 355 of file SqlStatement.hpp.
|
inline |
Fetches the next row of the result set.
Definition at line 361 of file SqlStatement.hpp.
Referenced by Lightweight::SqlCoreDataMapperQueryBuilder< Record, Derived, QueryOptions >::All().
|
inline |
Retrieves the value of the column at the given index for the currently selected row.
Returns true if the value is not NULL, false otherwise.
Definition at line 370 of file SqlStatement.hpp.
Referenced by Lightweight::SqlCoreDataMapperQueryBuilder< Record, Derived, QueryOptions >::All().
|
inline |
Retrieves the value of the column at the given index for the currently selected row.
Definition at line 377 of file SqlStatement.hpp.
|
inline |
Retrieves the value of the column at the given index for the currently selected row.
If the value is NULL, std::nullopt is returned.
Definition at line 386 of file SqlStatement.hpp.
|
inline |
Retrieves the value of the column at the given index for the currently selected row.
If the value is NULL, the given defaultValue is returned.
Definition at line 395 of file SqlStatement.hpp.