Skip to main content

surrealdb_expr/expr/
cond.rs

1use surrealdb_types::{SqlFormat, ToSql};
2
3use super::Expr;
4
5#[derive(Clone, Debug, Eq, PartialEq, Hash)]
6pub struct Cond(pub Expr);
7
8impl ToSql for Cond {
9	fn fmt_sql(&self, f: &mut String, fmt: SqlFormat) {
10		let stmt: crate::sql::cond::Cond = self.clone().into();
11		stmt.fmt_sql(f, fmt);
12	}
13}