MySqlSelectStatementExt

Trait MySqlSelectStatementExt 

Source
pub trait MySqlSelectStatementExt {
    // Required methods
    fn use_index<I>(&mut self, index: I, scope: IndexHintScope) -> &mut Self
       where I: IntoIden;
    fn use_index_on<T, I>(
        &mut self,
        table: T,
        index: I,
        scope: IndexHintScope,
    ) -> &mut Self
       where T: IntoTableRef,
             I: IntoIden;
    fn force_index<I>(&mut self, index: I, scope: IndexHintScope) -> &mut Self
       where I: IntoIden;
    fn force_index_on<T, I>(
        &mut self,
        table: T,
        index: I,
        scope: IndexHintScope,
    ) -> &mut Self
       where T: IntoTableRef,
             I: IntoIden;
    fn ignore_index<I>(&mut self, index: I, scope: IndexHintScope) -> &mut Self
       where I: IntoIden;
    fn ignore_index_on<T, I>(
        &mut self,
        table: T,
        index: I,
        scope: IndexHintScope,
    ) -> &mut Self
       where T: IntoTableRef,
             I: IntoIden;
}
Available on crate feature backend-mysql only.

Required Methods§

Source

fn use_index<I>(&mut self, index: I, scope: IndexHintScope) -> &mut Self
where I: IntoIden,

Source

fn use_index_on<T, I>( &mut self, table: T, index: I, scope: IndexHintScope, ) -> &mut Self
where T: IntoTableRef, I: IntoIden,

Source

fn force_index<I>(&mut self, index: I, scope: IndexHintScope) -> &mut Self
where I: IntoIden,

Source

fn force_index_on<T, I>( &mut self, table: T, index: I, scope: IndexHintScope, ) -> &mut Self
where T: IntoTableRef, I: IntoIden,

Source

fn ignore_index<I>(&mut self, index: I, scope: IndexHintScope) -> &mut Self
where I: IntoIden,

Source

fn ignore_index_on<T, I>( &mut self, table: T, index: I, scope: IndexHintScope, ) -> &mut Self
where T: IntoTableRef, I: IntoIden,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§