surrealdb_core/kvs/
live.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use derive::Store;
use revision::revisioned;
use serde::{Deserialize, Serialize};

#[revisioned(revision = 1)]
#[derive(Clone, Debug, Default, Eq, PartialEq, PartialOrd, Serialize, Deserialize, Store)]
#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
#[non_exhaustive]
pub struct Live {
	// TODO: optimisation this should probably be a &str
	/// The namespace in which this LIVE query exists
	pub ns: String,
	// TODO: optimisation this should probably be a &str
	/// The database in which this LIVE query exists
	pub db: String,
	// TODO: optimisation this should probably be a &str
	/// The table in which this LIVE query exists
	pub tb: String,
}