sea_query/extension/sqlite/
mod.rs

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