pub struct Entry {
    pub call: EntryCall,
    pub session: EntrySession,
    pub stats: EntryStats,
    pub sql_attributes: EntrySqlAttributes,
}Expand description
a struct representing a single log entry
Fields§
§call: EntryCallholds information about the call made to mysqld
session: EntrySessionholds information about the connection that made the call
stats: EntryStatsstats about how long it took for the query to run
sql_attributes: EntrySqlAttributesinformation obtained while parsing the SQL query
Implementations§
Source§impl Entry
 
impl Entry
Sourcepub fn user_name_bytes(&self) -> Bytes
 
pub fn user_name_bytes(&self) -> Bytes
returns the mysql user name that requested the command
Sourcepub fn sys_user_name(&self) -> Cow<'_, str>
 
pub fn sys_user_name(&self) -> Cow<'_, str>
returns the system user name that requested the command
Sourcepub fn sys_user_name_bytes(&self) -> Bytes
 
pub fn sys_user_name_bytes(&self) -> Bytes
returns the system user name that requested the command
Sourcepub fn host_name(&self) -> Option<Cow<'_, str>>
 
pub fn host_name(&self) -> Option<Cow<'_, str>>
returns the host name which requested the command
Sourcepub fn host_name_bytes(&self) -> Option<Bytes>
 
pub fn host_name_bytes(&self) -> Option<Bytes>
returns the host name which requested the command
Sourcepub fn ip_address(&self) -> Option<Cow<'_, str>>
 
pub fn ip_address(&self) -> Option<Cow<'_, str>>
returns the ip address which requested the command
Sourcepub fn ip_address_bytes(&self) -> Option<Bytes>
 
pub fn ip_address_bytes(&self) -> Option<Bytes>
returns the ip address which requested the command
Sourcepub fn thread_id(&self) -> u32
 
pub fn thread_id(&self) -> u32
returns the the thread id of the session which requested the command
Sourcepub fn stats(&self) -> &EntryStats
 
pub fn stats(&self) -> &EntryStats
returns a ref to the entry’s EntryStats struct
Sourcepub fn query_time(&self) -> f64
 
pub fn query_time(&self) -> f64
returns how long the query took to run
Sourcepub fn rows_examined(&self) -> u32
 
pub fn rows_examined(&self) -> u32
returns how many rows where examined to execute the query