Skip to main content

surrealdb_expr/expr/convert/
limit.rs

1//! `sql` -> `expr` conversions for [`crate::sql::limit`].
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::limit::*;
7
8impl From<Limit> for crate::expr::Limit {
9	fn from(value: Limit) -> Self {
10		Self(value.0.into())
11	}
12}
13
14impl From<crate::expr::Limit> for Limit {
15	fn from(value: crate::expr::Limit) -> Self {
16		Limit(value.0.into())
17	}
18}