sea_query/extension/sqlite/
mod.rs

1pub use expr::SqliteExpr;
2
3use crate::types::BinOper;
4
5mod expr;
6
7/// Sqlite-specific binary operator.
8#[derive(Debug, Clone, Copy, PartialEq, Eq)]
9pub enum SqliteBinOper {
10    /// `GLOB`
11    Glob,
12    /// `MATCH`.
13    Match,
14    /// `->`. Retrieves JSON field as JSON value.
15    GetJsonField,
16    /// `->>`. Retrieves JSON field and casts it to an appropriate SQL type.
17    CastJsonField,
18}
19
20impl From<SqliteBinOper> for BinOper {
21    fn from(o: SqliteBinOper) -> Self {
22        Self::SqliteOperator(o)
23    }
24}