surrealdb_core/kvs/live.rs
1use revision::revisioned;
2use serde::{Deserialize, Serialize};
3
4#[revisioned(revision = 1)]
5#[derive(Clone, Debug, Default, Eq, PartialEq, PartialOrd, Serialize, Deserialize)]
6#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
7#[non_exhaustive]
8pub struct Live {
9 // TODO: optimisation this should probably be a &str
10 /// The namespace in which this LIVE query exists
11 pub ns: String,
12 // TODO: optimisation this should probably be a &str
13 /// The database in which this LIVE query exists
14 pub db: String,
15 // TODO: optimisation this should probably be a &str
16 /// The table in which this LIVE query exists
17 pub tb: String,
18}