pub struct QueryMetadata {
pub tables: HashSet<String>,
pub columns: HashSet<String>,
pub aliases: HashMap<String, String>,
pub functions: HashSet<String>,
pub aggregates: HashSet<String>,
pub joins: Vec<JoinInfo>,
}Expand description
Metadata extracted from SQL query parsing containing tables, columns, functions, etc.
Fields§
§tables: HashSet<String>Set of table names referenced in the query
columns: HashSet<String>Set of column names referenced in the query
aliases: HashMap<String, String>Map of table/column aliases (alias -> original name)
functions: HashSet<String>Set of function names used in the query
aggregates: HashSet<String>Set of aggregate function names (SUM, COUNT, AVG, etc.)
joins: Vec<JoinInfo>List of JOIN operations with their details
Trait Implementations§
Source§impl Clone for QueryMetadata
impl Clone for QueryMetadata
Source§fn clone(&self) -> QueryMetadata
fn clone(&self) -> QueryMetadata
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 QueryMetadata
impl Debug for QueryMetadata
Source§impl Default for QueryMetadata
impl Default for QueryMetadata
Source§fn default() -> QueryMetadata
fn default() -> QueryMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for QueryMetadata
impl<'de> Deserialize<'de> for QueryMetadata
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
Source§impl PartialEq for QueryMetadata
impl PartialEq for QueryMetadata
Source§impl Serialize for QueryMetadata
impl Serialize for QueryMetadata
impl StructuralPartialEq for QueryMetadata
Auto Trait Implementations§
impl Freeze for QueryMetadata
impl RefUnwindSafe for QueryMetadata
impl Send for QueryMetadata
impl Sync for QueryMetadata
impl Unpin for QueryMetadata
impl UnwindSafe for QueryMetadata
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