|
HFSQtLi 0.0.1
A Qt/C++ wrapper for SQLite3.
|
Accessor passed to custom data type bind An instance of this class will be passed as first parameter to customBind and customBindConst functions (See Custom data types). More...
#include <HFSQtLi.h>
Public Member Functions | |
| template<class ... T> | |
| int | bind (T &&...value) |
| Binds some values This function is roughly equivalent to calling Query::bind. It will bind one or more values. Note that the function will start binding from the column following the last bound column. E.g. in: More... | |
| template<class ... T> | |
| int | bindIndex (int i, T &&...value) |
| Binds some values This function is roughly equivalent to calling Query::bind. It will bind one or more values. Note that the function will start binding from the column following the last column bind by the query. E.g. in: More... | |
| constexpr int | numBound () |
| Gets the number of bound columns so far by this custom accessor. Number of bound column is defined as the maximum column index bound minus the first column index associated with the accessor plus one. If no column has yet be bound returns 0. More... | |
Protected Member Functions | |
| constexpr | CustomBind (Query *query, int base) |
Protected Attributes | |
| Query * | m_query |
| int | m_base |
| int | m_bound |
Friends | |
| class | Query |
Accessor passed to custom data type bind An instance of this class will be passed as first parameter to customBind and customBindConst functions (See Custom data types).
The function will be able to use it to bind the columns with value from the object given as second parameter.
Example usage:
|
inline |
Binds some values This function is roughly equivalent to calling Query::bind. It will bind one or more values. Note that the function will start binding from the column following the last bound column. E.g. in:
| value | Is a list of objects to bind |
|
inline |
Binds some values This function is roughly equivalent to calling Query::bind. It will bind one or more values. Note that the function will start binding from the column following the last column bind by the query. E.g. in:
| i | 1-based index of first column to bind. Note that the 0 column is the one currently binding |
| value | Is a list of objects to bind |
|
inlineconstexpr |
Gets the number of bound columns so far by this custom accessor. Number of bound column is defined as the maximum column index bound minus the first column index associated with the accessor plus one. If no column has yet be bound returns 0.