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: EntryCall
holds information about the call made to mysqld
session: EntrySession
holds information about the connection that made the call
stats: EntryStats
stats about how long it took for the query to run
sql_attributes: EntrySqlAttributes
information obtained while parsing the SQL query
Implementations§
Source§impl Entry
impl Entry
Sourcepub fn log_time(&self) -> OffsetDateTime
pub fn log_time(&self) -> OffsetDateTime
returns the time the entry was recorded
Sourcepub fn query_start_time(&self) -> OffsetDateTime
pub fn query_start_time(&self) -> OffsetDateTime
returns the time the query started
Sourcepub fn query_lock_end_time(&self) -> OffsetDateTime
pub fn query_lock_end_time(&self) -> OffsetDateTime
returns the time the query started
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