sea_query/extension/mysql/
index.rs1use 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)]
13#[non_exhaustive]
14pub enum IndexHintType {
15 Use,
16 Ignore,
17 Force,
18}
19
20#[derive(Debug, Clone, Copy, PartialEq)]
21#[non_exhaustive]
22pub enum IndexHintScope {
23 Join,
24 OrderBy,
25 GroupBy,
26 All,
27}