surrealdb_expr/expr/statements/define/
namespace.rs1use surrealdb_strand::Strand;
2
3use super::DefineKind;
4use crate::expr::{Expr, Literal};
5
6#[derive(Clone, Debug, Eq, PartialEq, Hash)]
7pub struct DefineNamespaceStatement {
8 pub kind: DefineKind,
9 pub id: Option<u32>,
10 pub name: Expr,
11 pub comment: Expr,
12}
13
14impl Default for DefineNamespaceStatement {
15 fn default() -> Self {
16 Self {
17 kind: DefineKind::Default,
18 id: None,
19 name: Expr::Literal(Literal::String(Strand::default())),
20 comment: Expr::Literal(Literal::None),
21 }
22 }
23}