Skip to main content

surrealdb_expr/expr/convert/
cond.rs

1//! `sql` -> `expr` conversions for [`crate::sql::cond`].
2//!
3//! Lives in core rather than beside the AST: `surrealdb-sql` sits below
4//! core, so it cannot name `expr` types.
5
6use crate::sql::cond::*;
7
8impl From<Cond> for crate::expr::Cond {
9	fn from(v: Cond) -> Self {
10		Self(v.0.into())
11	}
12}
13
14impl From<crate::expr::Cond> for Cond {
15	fn from(v: crate::expr::Cond) -> Self {
16		Self(v.0.into())
17	}
18}