36 #ifndef _DATABASE_SUBSTITUTING_STATEMENT_HPP_INCLUDED
37 #define _DATABASE_SUBSTITUTING_STATEMENT_HPP_INCLUDED
61 virtual void init(
const std::string &stmtStr );
63 virtual void clear( );
74 virtual const std::string
replace(
const unsigned int idx )
const;
79 std::map< unsigned int, std::string >
m_bind;
std::map< unsigned int, std::string > m_bind
Stores the placeholders in calls of bind till they are used to create the substituted SQL statement w...
Definition: substitutingStatement.hpp:79
virtual void bind(const unsigned int idx, const types::Variant &value)
Binds parameter at position idx with variant data in the format with Wolframe placeholders.
virtual void clear()
Clear current statement.
Forward declaration.
Definition: variant.hpp:65
An abstract statement class which allows derived classes to provide a simple escaping function which ...
Definition: substitutingStatement.hpp:55
virtual const std::string replace(const unsigned int idx) const
Funtion called when the placeholder should be put into the final string (this is either for subsituti...
Interface to substitute parameters in embedded SQL statements.
virtual void init(const std::string &stmtStr)
Set new SQL statement.
virtual const std::string convert(const types::Variant &value) const =0
Function to convert and escape a variant, if single quotes are need, the function should also return ...
Implements basic parsing of the Wolframe SQL statement with placeholders, derived classes can steer h...
Definition: baseStatement.hpp:52