|
Lightweight 0.20261105.1
|
A step a binder plans to run before every fetch into the output column it binds. More...
#include <Core.hpp>
Public Attributes | |
| SqlResult(* | run )(SqlOutputColumnPreFetch &step, Driver::StatementHandle &statement) = nullptr |
Runs the step. Returns SqlResult::Success, or the failing result (the fetch then fails with it). | |
| void * | target = nullptr |
| The bound object the step works on. | |
| SqlIndicator * | indicator = nullptr |
| The column's length/indicator buffer. | |
| void const * | boundData = nullptr |
| The storage the column is currently bound to. | |
| std::size_t | boundSize = 0 |
| The element count the column is currently bound with. | |
| SqlColumnIndex | column = 0 |
| The 1-based column index. | |
| std::int16_t | cType = 0 |
| The driver's C type code the column is bound as. | |
A step a binder plans to run before every fetch into the output column it binds.
Plain data rather than a type-erased callable, so planning one never allocates, not even when a column is bound anew for every row. run receives the step itself (so it can update boundData and boundSize) and the statement the column is bound on. Only a driver whose bound columns are filled by the driver itself plans one (the ODBC driver's binders); the native SQLite3 driver reads every bound column afresh for each row and plans none.
| SqlResult(* Lightweight::SqlOutputColumnPreFetch::run) (SqlOutputColumnPreFetch &step, Driver::StatementHandle &statement) = nullptr |
Runs the step. Returns SqlResult::Success, or the failing result (the fetch then fails with it).
Definition at line 51 of file Core.hpp.
Referenced by Lightweight::Driver::Odbc::PlanBoundBufferRestore().
| void* Lightweight::SqlOutputColumnPreFetch::target = nullptr |
The bound object the step works on.
Definition at line 53 of file Core.hpp.
Referenced by Lightweight::Driver::Odbc::RestoreBoundBuffer().
| SqlIndicator* Lightweight::SqlOutputColumnPreFetch::indicator = nullptr |
The column's length/indicator buffer.
Definition at line 55 of file Core.hpp.
Referenced by Lightweight::Driver::Odbc::RestoreBoundBuffer().
| void const* Lightweight::SqlOutputColumnPreFetch::boundData = nullptr |
The storage the column is currently bound to.
Definition at line 57 of file Core.hpp.
Referenced by Lightweight::Driver::Odbc::RestoreBoundBuffer().
| std::size_t Lightweight::SqlOutputColumnPreFetch::boundSize = 0 |
The element count the column is currently bound with.
Definition at line 59 of file Core.hpp.
Referenced by Lightweight::Driver::Odbc::RestoreBoundBuffer().
| SqlColumnIndex Lightweight::SqlOutputColumnPreFetch::column = 0 |
The 1-based column index.
Definition at line 61 of file Core.hpp.
Referenced by Lightweight::Driver::Odbc::RestoreBoundBuffer().
| std::int16_t Lightweight::SqlOutputColumnPreFetch::cType = 0 |
The driver's C type code the column is bound as.
Definition at line 63 of file Core.hpp.
Referenced by Lightweight::Driver::Odbc::RestoreBoundBuffer().