matador::basic_sql_logger Class Referenceabstract

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
 

Detailed Description

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.

Member Function Documentation

◆ on_close()

virtual void matador::basic_sql_logger::on_close ( )
pure virtual

Is called when a connection is going to be closed

Implemented in matador::null_sql_logger, and matador::sql_logger.

◆ on_connect()

virtual void matador::basic_sql_logger::on_connect ( )
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.

◆ on_execute()

virtual void matador::basic_sql_logger::on_execute ( const std::string &  stmt)
pure virtual

Is called when a sql statement is going to be executed

Parameters
stmtSQL statement to be executed

Implemented in matador::null_sql_logger, and matador::sql_logger.

◆ on_prepare()

virtual void matador::basic_sql_logger::on_prepare ( const std::string &  stmt)
pure virtual

Is called when a sql statement is going to be prepared

Parameters
stmtSQL statement to be prepared

Implemented in matador::null_sql_logger, and matador::sql_logger.


The documentation for this class was generated from the following file:
  • matador/sql/basic_sql_logger.hpp