drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
UserCommands Class Reference
Collaboration diagram for UserCommands:
[legend]

Public Types

enum  command_count_index {
  COUNT_SELECT , COUNT_DELETE , COUNT_UPDATE , COUNT_INSERT ,
  COUNT_ROLLBACK , COUNT_COMMIT , COUNT_CREATE , COUNT_ALTER ,
  COUNT_DROP , COUNT_ADMIN , COUNT_END
}

Public Member Functions

 UserCommands (const UserCommands &user_commands)
uint64_t getCount (uint32_t index)
void merge (UserCommands *user_commands)
void reset ()
void logCommand (drizzled::enum_sql_command sql_command)
uint64_t getUserCount (uint32_t index)

Static Public Member Functions

static uint32_t getStatusVarsCount ()
static uint32_t getUserCounts ()

Static Public Attributes

static const char * COM_STATUS_VARS []
static const char * USER_COUNTS []

Private Member Functions

void init ()
void incrementCount (uint32_t index, uint32_t i=1)

Private Attributes

std::vector< uint64_t > vector_of_command_counts

Detailed Description

Definition at line 38 of file user_commands.h.

Member Enumeration Documentation

◆ command_count_index

enum UserCommands::command_count_index

Definition at line 68 of file user_commands.h.

Constructor & Destructor Documentation

◆ UserCommands() [1/2]

UserCommands::UserCommands ( )

Definition at line 90 of file user_commands.cc.

◆ UserCommands() [2/2]

UserCommands::UserCommands ( const UserCommands & user_commands)

Definition at line 153 of file user_commands.cc.

Member Function Documentation

◆ getCount()

uint64_t UserCommands::getCount ( uint32_t index)

Definition at line 111 of file user_commands.cc.

◆ getStatusVarsCount()

uint32_t UserCommands::getStatusVarsCount ( )
inlinestatic

Definition at line 54 of file user_commands.h.

◆ getUserCount()

uint64_t UserCommands::getUserCount ( uint32_t index)

Definition at line 117 of file user_commands.cc.

◆ getUserCounts()

uint32_t UserCommands::getUserCounts ( )
inlinestatic

Definition at line 59 of file user_commands.h.

◆ incrementCount()

void UserCommands::incrementCount ( uint32_t index,
uint32_t i = 1 )
private

Definition at line 105 of file user_commands.cc.

◆ init()

void UserCommands::init ( )
private

Definition at line 95 of file user_commands.cc.

◆ logCommand()

void UserCommands::logCommand ( drizzled::enum_sql_command sql_command)

Definition at line 175 of file user_commands.cc.

◆ merge()

void UserCommands::merge ( UserCommands * user_commands)

Definition at line 165 of file user_commands.cc.

◆ reset()

void UserCommands::reset ( )

Definition at line 144 of file user_commands.cc.

Member Data Documentation

◆ COM_STATUS_VARS

const char * UserCommands::COM_STATUS_VARS
static

Definition at line 49 of file user_commands.h.

◆ USER_COUNTS

const char * UserCommands::USER_COUNTS
static
Initial value:
=
{
"COUNT_SELECT",
"COUNT_DELETE",
"COUNT_UPDATE",
"COUNT_INSERT",
"COUNT_ROLLBACK",
"COUNT_COMMIT",
"COUNT_CREATE",
"COUNT_ALTER",
"COUNT_DROP",
"COUNT_ADMIN"
}

Definition at line 35 of file user_commands.h.

◆ vector_of_command_counts

std::vector<uint64_t> UserCommands::vector_of_command_counts
private

Definition at line 90 of file user_commands.h.


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