37 #ifndef _DATABASE_STATEMENET_HPP_INCLUDED
38 #define _DATABASE_STATEMENET_HPP_INCLUDED
64 virtual const std::string
nativeSQL( )
const = 0;
67 virtual void init(
const std::string &stmtStr ) = 0;
70 virtual void clear( ) = 0;
77 virtual void substitute(
bool checkForMissingPlaceholders =
true ) = 0;
82 virtual const std::string
replace(
const unsigned int idx )
const = 0;
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 interface of a statement SQL parameter substutution class.
Definition: statement.hpp:48
virtual void init(const std::string &stmtStr)=0
Set new SQL statement.
Forward declaration.
Definition: variant.hpp:65
virtual ~Statement()
Definition: statement.hpp:51
virtual const std::string originalSQL() const =0
Returns the SQL statement as passed down to the database layer.
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.
virtual void substitute(bool checkForMissingPlaceholders=true)=0
Trigger substitution (nativeSQL is valid after this call and not before!)
virtual void clear()=0
Clear current statement.
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 subsituti...