|
Leosac
0.7.0
OpenSourceAccessControl
|
An implementation of odb::tracer that use the logging infrastructure of Leosac. More...
#include <PGSQLTracer.hpp>
Inheritance diagram for Leosac::db::PGSQLTracer:
Collaboration diagram for Leosac::db::PGSQLTracer:Public Member Functions | |
| PGSQLTracer (bool count_only) | |
| virtual void | execute (odb::connection &connection, const char *statement) |
| virtual size_t | count () const override |
| Return the number of statement that have been traced. More... | |
Public Member Functions inherited from Leosac::db::DatabaseTracer | |
| DatabaseTracer ()=default | |
Private Attributes | |
| size_t | count_ |
| bool | count_only_ |
An implementation of odb::tracer that use the logging infrastructure of Leosac.
Definition at line 35 of file PGSQLTracer.hpp.
| PGSQLTracer::PGSQLTracer | ( | bool | count_only | ) |
| count_only | Do not log request, only count them. |
Definition at line 26 of file PGSQLTracer.cpp.
|
overridevirtual |
Return the number of statement that have been traced.
Implements Leosac::db::DatabaseTracer.
Definition at line 38 of file PGSQLTracer.cpp.
|
virtual |
Definition at line 31 of file PGSQLTracer.cpp.
|
private |
Definition at line 47 of file PGSQLTracer.hpp.
|
private |
Definition at line 48 of file PGSQLTracer.hpp.