Base class for sql logging. More...
#include <basic_sql_logger.hpp>
Inherited by matador::null_sql_logger, and matador::sql_logger.
Public Member Functions | |
virtual void | on_connect ()=0 |
virtual void | on_close ()=0 |
virtual void | on_execute (const std::string &stmt)=0 |
virtual void | on_prepare (const std::string &stmt)=0 |
Base class for sql logging.
This class acts as a base class to implement a concrete logger for sql statements.
It provides interfaces to handle the establishing and closing of a database connection as well as when an sql statement is about to execute or going to prepared.
|
pure virtual |
Is called when a connection is going to be closed
Implemented in matador::null_sql_logger, and matador::sql_logger.
|
pure virtual |
Is called when a connection to a database is going to be established
Implemented in matador::null_sql_logger, and matador::sql_logger.
|
pure virtual |
Is called when a sql statement is going to be executed
stmt | SQL statement to be executed |
Implemented in matador::null_sql_logger, and matador::sql_logger.
|
pure virtual |
Is called when a sql statement is going to be prepared
stmt | SQL statement to be prepared |
Implemented in matador::null_sql_logger, and matador::sql_logger.