surrealdb_expr/expr/convert/param.rs
1//! `sql` -> `expr` conversions for [`crate::sql::param`].
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::param::*;
7
8impl From<Param> for crate::expr::Param {
9 fn from(v: Param) -> Self {
10 crate::expr::Param::from(v.into_strand())
11 }
12}
13
14impl From<crate::expr::Param> for Param {
15 fn from(v: crate::expr::Param) -> Self {
16 Param::new(v.into_strand())
17 }
18}