Base class for all query implementations. More...
#include <basic_query.hpp>
Inherited by matador::query< T >.
Public Member Functions | |
basic_query () | |
void | reset_query (t_query_command query_command) |
std::string | str (bool prepared) |
std::string | str (connection &conn, bool prepared) |
const sql & | stmt () const |
std::string | tablename () const |
Base class for all query implementations.
This class acts as a base class for all types of query implementations
matador::detail::basic_query::basic_query | ( | ) |
Creates a basic query for the given table identified by table_name
table_name | The name of the table |
void matador::detail::basic_query::reset_query | ( | t_query_command | query_command | ) |
Resets the query.
query_command | The query command to reset to |
const sql & matador::detail::basic_query::stmt | ( | ) | const |
Get the underlying sql object
std::string matador::detail::basic_query::str | ( | bool | prepared | ) |
Get the query string build for internal connection as prepared or direct statement
prepared | Indicates wether the query should be interpreted as prepared or direct |
std::string matador::detail::basic_query::str | ( | connection & | conn, |
bool | prepared | ||
) |
Get the query string build for the specific connection as prepared or direct statement
conn | The connection to build for |
prepared | Indicates wether the query should be interpreted as prepared or direct |
std::string matador::detail::basic_query::tablename | ( | ) | const |
Return the current tablename of the query