sea_query/extension/mysql/index.rs
1use crate::{Alias, DynIden};
2
3pub type IndexName = Alias;
4
5#[derive(Debug, Clone, PartialEq)]
6pub struct IndexHint {
7 pub index: DynIden,
8 pub r#type: IndexHintType,
9 pub scope: IndexHintScope,
10}
11
12#[derive(Debug, Clone, Copy, PartialEq)]
13pub enum IndexHintType {
14 Use,
15 Ignore,
16 Force,
17}
18
19#[derive(Debug, Clone, Copy, PartialEq)]
20pub enum IndexHintScope {
21 Join,
22 OrderBy,
23 GroupBy,
24 All,
25}