Drizzled Public API Documentation

drizzle_plugin::logging_query::Logging_query Class Reference
Inheritance diagram for drizzle_plugin::logging_query::Logging_query:
drizzled::plugin::Logging drizzled::plugin::Plugin

Public Types

typedef std::pair< const
std::string, const std::string > 
map_key
 
typedef std::map< const
map_key, plugin::Plugin * > 
map
 
typedef std::vector< Plugin * > vector
 

Public Member Functions

 Logging_query (const std::string &filename, const std::string &query_pcre)
 
bool setFileName (std::string new_filename)
 
bool setPCRE (std::string new_pcre)
 
std::string & getFileName ()
 
std::string & getPCRE ()
 
virtual bool post (Session *session)
 
virtual bool pre (Session *)
 
virtual bool postEnd (Session *)
 
virtual bool resetGlobalScoreboard ()
 
virtual void shutdownPlugin ()
 
virtual void prime ()
 
virtual void startup (drizzled::Session &)
 
void activate ()
 
void deactivate ()
 
bool isActive () const
 
const std::string & getName () const
 
void setModule (module::Module *module)
 
const std::string & getTypeName () const
 
virtual bool removeLast () const
 
const std::string & getModuleName () const
 

Static Public Member Functions

static bool addPlugin (Logging *handler)
 
static void removePlugin (Logging *handler)
 
static bool preDo (Session *session)
 
static bool postDo (Session *session)
 
static bool postEndDo (Session *session)
 
static bool resetStats (Session *session)
 

Private Attributes

std::string sysvar_filename
 
std::string sysvar_pcre
 
int fd
 
pcre * re
 
pcre_extra * pe
 
boost::format formatter
 

Detailed Description

Definition at line 153 of file logging_query.cc.

Member Function Documentation

std::string& drizzle_plugin::logging_query::Logging_query::getFileName ( )
inline

Getter for query log filename

Returns
sysvar_filename

Definition at line 265 of file logging_query.cc.

std::string& drizzle_plugin::logging_query::Logging_query::getPCRE ( )
inline

Getter for pcre

Returns
sysvar_pcre

Definition at line 275 of file logging_query.cc.

virtual bool drizzled::plugin::Logging::pre ( Session )
inlinevirtualinherited

Make these no-op rather than pure-virtual so that it's easy for a plugin to only implement one.

Reimplemented in performance_dictionary::SessionUsageLogger.

Definition at line 41 of file logging.h.

bool drizzle_plugin::logging_query::Logging_query::setFileName ( std::string  new_filename)
inline

This function changes the current query log file to the parameter passed to the function.

Returns
True on success, False on error.

Definition at line 207 of file logging_query.cc.

bool drizzle_plugin::logging_query::Logging_query::setPCRE ( std::string  new_pcre)
inline

This function updates the current regex expression with the new regex expression passed as parameter.

Returns
True on success, False on error.

Definition at line 235 of file logging_query.cc.

Member Data Documentation

boost::format drizzle_plugin::logging_query::Logging_query::formatter
private

Format of the output string

Definition at line 162 of file logging_query.cc.


The documentation for this class was generated from the following file: