pub struct IdentifierCache { /* private fields */ }Expand description
Cache for auto-interning common identifier patterns.
This cache recognizes common patterns like table.column and automatically
interns both the full identifier and its components.
Implementations§
Source§impl IdentifierCache
impl IdentifierCache
Sourcepub fn intern_qualified(&self, table: &str, column: &str) -> InternedStr
pub fn intern_qualified(&self, table: &str, column: &str) -> InternedStr
Intern a table.column identifier.
Also interns the individual components.
Sourcepub fn intern_component(&self, name: &str) -> InternedStr
pub fn intern_component(&self, name: &str) -> InternedStr
Intern just a component (table name or column name).
Sourcepub fn get_qualified(&self, table: &str, column: &str) -> Option<InternedStr>
pub fn get_qualified(&self, table: &str, column: &str) -> Option<InternedStr>
Get a cached qualified identifier.
Sourcepub fn component_count(&self) -> usize
pub fn component_count(&self) -> usize
Get cached component count.
Sourcepub fn qualified_count(&self) -> usize
pub fn qualified_count(&self) -> usize
Get cached full identifier count.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for IdentifierCache
impl !RefUnwindSafe for IdentifierCache
impl Send for IdentifierCache
impl Sync for IdentifierCache
impl Unpin for IdentifierCache
impl UnwindSafe for IdentifierCache
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