Skip to main content

SQLIndexInfo

Trait SQLIndexInfo 

Source
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 method
    fn is_unique(&self) -> bool { ... }
}

Required Methods§

Source

fn table(&self) -> &'static TableRef

Source

fn name(&self) -> &'static str

The name of this index (for DROP INDEX statements)

Source

fn columns(&self) -> &'static [&'static str]

Column names included in this index, in definition order.

Provided Methods§

Source

fn is_unique(&self) -> bool

Whether this is a unique index

Trait Implementations§

Source§

impl Debug for dyn SQLIndexInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§

Source§

impl<T: DrizzleIndex> SQLIndexInfo for T

Blanket: any DrizzleIndex automatically satisfies SQLIndexInfo.