![]() |
Agroeye
1.0
|
#include <DatabaseStatements.h>
Public Member Functions | |
| GeometryStatement () | |
| GeometryStatement (std::shared_ptr< sqlite3 > ptrSql3, const DbTable &table) | |
| Creates geometry statement. More... | |
| GeometryStatement (GeometryStatement &&)=default | |
| GeometryStatement & | operator= (GeometryStatement &&)=default |
| void | setGeometry (SpatialiteBlobWkb &&blob) |
| Sets the geometry value in the statement Until the process or flush function is not called the geometry is not inserted into database. More... | |
Public Member Functions inherited from agroeye::handlers::GeneralStatement | |
| void | setId (const uint32_t &id) |
| Sets id value of inserting row. More... | |
| void | process () |
| void | flush () |
Additional Inherited Members | |
Protected Member Functions inherited from agroeye::handlers::GeneralStatement | |
| GeneralStatement () | |
| GeneralStatement (std::shared_ptr< sqlite3 > aPtrSql3) | |
| GeneralStatement (GeneralStatement &&)=default | |
| GeneralStatement & | operator= (GeneralStatement &&)=default |
| void | prepare () |
Protected Attributes inherited from agroeye::handlers::GeneralStatement | |
| std::shared_ptr< sqlite3 > | ptrSql3 {nullptr} |
| std::unique_ptr< sqlite3_stmt, int(*)(sqlite3_stmt *)> | ptrStmt {nullptr, [](sqlite3_stmt* pStmt) {return sqlite3_finalize(pStmt);}} |
| std::string | buffer |
| size_t | id_position {0} |
|
inline |
| agroeye::handlers::GeometryStatement::GeometryStatement | ( | std::shared_ptr< sqlite3 > | ptrSql3, |
| const DbTable & | table | ||
| ) |
Creates geometry statement.
Constructor creates geoemtry statement. The provided table must contain exactly one geometry column
| ptrSql3 | Smart pointer to the sqlite3 database |
| table | Table containing geometry column and id key |
|
default |
|
default |
| void agroeye::handlers::GeometryStatement::setGeometry | ( | SpatialiteBlobWkb && | blob | ) |
1.8.12