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)]
11#[non_exhaustive]
12pub enum SqliteBinOper {
13    /// `GLOB`
14    Glob,
15    /// `MATCH`.
16    Match,
17    /// `->`. Retrieves JSON field as JSON value.
18    GetJsonField,
19    /// `->>`. Retrieves JSON field and casts it to an appropriate SQL type.
20    CastJsonField,
21}
22
23impl From<SqliteBinOper> for BinOper {
24    fn from(o: SqliteBinOper) -> Self {
25        Self::SqliteOperator(o)
26    }
27}