The interface of a statement SQL parameter substutution class. More...
#include <statement.hpp>
Public Member Functions | |
virtual | ~Statement () |
virtual void | bind (const unsigned int idx, const types::Variant &arg)=0 |
Binds parameter at position idx with variant data in the format with Wolframe placeholders. More... | |
virtual const std::string | originalSQL () const =0 |
Returns the SQL statement as passed down to the database layer. More... | |
virtual const std::string | nativeSQL () const =0 |
Returns the SQL statement with the native database placeholders or the data filled in (this is up to the derived classes). More... | |
virtual void | init (const std::string &stmtStr)=0 |
Set new SQL statement. More... | |
virtual void | clear ()=0 |
Clear current statement. More... | |
virtual void | substitute (bool checkForMissingPlaceholders=true)=0 |
Trigger substitution (nativeSQL is valid after this call and not before!) More... | |
virtual const std::string | replace (const unsigned int idx) const =0 |
Funtion called when the placeholder should be put into the final string (this is either for subsituting data or rewrite placeholders to native syntax) More... | |
The interface of a statement SQL parameter substutution class.
|
inlinevirtual |
|
pure virtual |
Binds parameter at position idx with variant data in the format with Wolframe placeholders.
Implemented in _Wolframe::db::BaseStatement, and _Wolframe::db::SubstitutingStatement.
|
pure virtual |
Clear current statement.
Implemented in _Wolframe::db::SubstitutingStatement, and _Wolframe::db::BaseStatement.
|
pure virtual |
Set new SQL statement.
Implemented in _Wolframe::db::SubstitutingStatement, and _Wolframe::db::BaseStatement.
|
pure virtual |
Returns the SQL statement with the native database placeholders or the data filled in (this is up to the derived classes).
Implemented in _Wolframe::db::BaseStatement.
|
pure virtual |
Returns the SQL statement as passed down to the database layer.
Implemented in _Wolframe::db::BaseStatement.
|
pure virtual |
Funtion called when the placeholder should be put into the final string (this is either for subsituting data or rewrite placeholders to native syntax)
Implemented in _Wolframe::db::SubstitutingStatement.
|
pure virtual |
Trigger substitution (nativeSQL is valid after this call and not before!)
[in] | checkForMissingPlaceholders | whether the function should already check the validity and cardinality of the placeholders in the SQL statement |
Implemented in _Wolframe::db::BaseStatement.
Copyright © 2014 - Project Wolframe - All Rights Reserved