Skip to main content

surrealdb_expr/expr/convert/statements/remove/
function.rs

1//! `sql` -> `expr` conversions for [`crate::sql::statements::remove::function`].
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::statements::remove::function::*;
7
8impl From<RemoveFunctionStatement> for crate::expr::statements::RemoveFunctionStatement {
9	fn from(v: RemoveFunctionStatement) -> Self {
10		crate::expr::statements::RemoveFunctionStatement {
11			name: v.name,
12			if_exists: v.if_exists,
13		}
14	}
15}
16
17impl From<crate::expr::statements::RemoveFunctionStatement> for RemoveFunctionStatement {
18	fn from(v: crate::expr::statements::RemoveFunctionStatement) -> Self {
19		RemoveFunctionStatement {
20			name: v.name,
21			if_exists: v.if_exists,
22		}
23	}
24}