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