pub struct IndexHint {
pub kind: IndexHintKind,
pub variable: SmallName,
pub label: SmallName,
pub properties: Vec<SmallName>,
}Expand description
One index hint — USING INDEX, USING RANGE INDEX, or USING TEXT INDEX — naming <variable>:<Label>(<property>[, …]); the [SEEK]
modifier belongs to the plain spelling only (USING INDEX SEEK; the
RANGE and TEXT spellings take no modifier).
Fields§
§kind: IndexHintKind§variable: SmallName§label: SmallName§properties: Vec<SmallName>Implementations§
Source§impl IndexHint
impl IndexHint
Sourcepub fn properties_text(&self) -> String
pub fn properties_text(&self) -> String
The hinted property list as one text — name, name, surname —
the one spelling both the front end’s unfulfillable-hint error
(42N76) and the plan-time 01N31 description render. Each name
goes through the canonical display quoting
(quote_identifier_shaped: bare when plain, backtick-escaped
otherwise), so an exotic name cannot break the message carrying
it.
Trait Implementations§
impl Eq for IndexHint
impl StructuralPartialEq for IndexHint
Auto Trait Implementations§
impl Forget for IndexHint
impl Freeze for IndexHint
impl Move for IndexHint
impl RefUnwindSafe for IndexHint
impl Send for IndexHint
impl Sync for IndexHint
impl Unpin for IndexHint
impl UnsafeUnpin for IndexHint
impl UnwindSafe for IndexHint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.