pub struct Sqllog {}Expand description
SQL 日志记录
表示一条完整的 SQL 日志记录,所有字段在解析时一次性填充。
Fields§
§ts: String时间戳,格式为 “YYYY-MM-DD HH:MM:SS.mmm”
tag: Option<String>方括号标签(例如 [SEL]、[ORA]),若无则为 None
ep: u8EP(Execution Point)编号,范围 0-255
sess_id: String会话 ID
thrd_id: String线程 ID
username: String用户名
trxid: String事务 ID
statement: String语句 ID
appname: String应用程序名称
client_ip: String客户端 IP 地址
sql: StringSQL 语句体
exectime: f32执行时间(毫秒),无指标时为 0.0
rowcount: u32影响的行数,无指标时为 0
exec_id: i64执行 ID,无指标时为 0
Trait Implementations§
impl StructuralPartialEq for Sqllog
Auto Trait Implementations§
impl Freeze for Sqllog
impl RefUnwindSafe for Sqllog
impl Send for Sqllog
impl Sync for Sqllog
impl Unpin for Sqllog
impl UnsafeUnpin for Sqllog
impl UnwindSafe for Sqllog
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more