template<class ObjectType, class ... Columns>
class sqlite::ObjectStatement< ObjectType, Columns >
SQLite prepared statement wrapper.
This class is meant to prepare a SQLite statement where each row of the result is supposed to fill one object of type ObjectType.
Columns is the type of each of the columns in the returned data. When calling getRow() the selected columns from the current result row will be converted to the typesspecified by Columns and passed to the constructor of ObjectType and the resulting object is returned.
After calling execute one can iterate over the statement to get all rows.
for(auto&& tvec3: vectors.execute()) {
tvec3.Print();
}
SQLite prepared statement wrapper.
- Warning
- Be aware that you cannot iterate over this statement multiple times and should not have multiple independent iterators as the underlying sqlite statement object will change its state. One iteration over the rows per execute() call.
Definition at line 194 of file sqlite.h.