sea_query/extension/mysql/
index.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
use crate::{Alias, DynIden};

pub type IndexName = Alias;

#[derive(Debug, Clone, PartialEq)]
pub struct IndexHint {
    pub index: DynIden,
    pub r#type: IndexHintType,
    pub scope: IndexHintScope,
}

#[derive(Debug, Clone, Copy, PartialEq)]
pub enum IndexHintType {
    Use,
    Ignore,
    Force,
}

#[derive(Debug, Clone, Copy, PartialEq)]
pub enum IndexHintScope {
    Join,
    OrderBy,
    GroupBy,
    All,
}