pub trait SQLIndexInfo:
Any
+ Send
+ Sync {
// Required methods
fn table(&self) -> &'static TableRef;
fn name(&self) -> &'static str;
fn columns(&self) -> &'static [&'static str];
// Provided methods
fn is_unique(&self) -> bool { ... }
fn where_clause(&self) -> Option<&'static str> { ... }
}Required Methods§
Provided Methods§
Sourcefn where_clause(&self) -> Option<&'static str>
fn where_clause(&self) -> Option<&'static str>
Raw SQL predicate for a partial index.
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl<T: DrizzleIndex> SQLIndexInfo for T
Blanket: any DrizzleIndex automatically satisfies SQLIndexInfo.