pub struct QueryEvent {Show 13 fields
pub event_id: String,
pub timestamp: SystemTime,
pub query: String,
pub params: Vec<ParamValue>,
pub params_incomplete: bool,
pub normalized_query: Option<String>,
pub value_fingerprints: Option<Vec<String>>,
pub duration: Duration,
pub rows: Option<u64>,
pub success: bool,
pub error: Option<String>,
pub database: String,
pub connection_id: String,
}Expand description
Represents a captured SQL query event from the proxy
Fields§
§event_id: StringUnique identifier for this event
timestamp: SystemTimeTimestamp when the query was received
query: StringThe SQL query text (raw if anonymization disabled, else same as normalized_query)
params: Vec<ParamValue>Query parameters from Bind message
params_incomplete: boolTrue if params couldn’t be fully decoded (cache miss)
normalized_query: Option<String>Normalized query with placeholders (if anonymization enabled)
value_fingerprints: Option<Vec<String>>Fingerprints of literal values (if anonymization enabled) Enables hot data detection while protecting PII
duration: DurationQuery execution duration
rows: Option<u64>Number of rows affected/returned (if available)
success: boolWhether the query succeeded
error: Option<String>Error message if query failed
database: StringDatabase name
connection_id: StringClient connection ID
Trait Implementations§
Source§impl Clone for QueryEvent
impl Clone for QueryEvent
Source§fn clone(&self) -> QueryEvent
fn clone(&self) -> QueryEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QueryEvent
impl Debug for QueryEvent
Source§impl<'de> Deserialize<'de> for QueryEvent
impl<'de> Deserialize<'de> for QueryEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for QueryEvent
impl RefUnwindSafe for QueryEvent
impl Send for QueryEvent
impl Sync for QueryEvent
impl Unpin for QueryEvent
impl UnsafeUnpin for QueryEvent
impl UnwindSafe for QueryEvent
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