surrealdb_expr/expr/statements/define/event.rs
1use super::DefineKind;
2use crate::expr::Expr;
3use crate::sql::EventKind;
4
5#[derive(Clone, Debug, Eq, PartialEq, Hash)]
6pub struct DefineEventStatement {
7 pub kind: DefineKind,
8 pub name: Expr,
9 pub target_table: Expr,
10 pub when: Expr,
11 pub then: Vec<Expr>,
12 pub comment: Expr,
13 pub event_kind: EventKind,
14}