pub enum TableKind {
Entity,
Relation {
in_fk: ForeignKeyDefinition,
out_fk: ForeignKeyDefinition,
},
}Expand description
Classification of a table for SurrealDB sync purposes.
Entity tables are synced as regular SurrealDB records (with FK columns
converted to record links). Relation tables are synced as SurrealDB
graph edges via RELATE.
Variants§
Entity
A normal entity table. FK columns become record links.
Relation
A join/relation table. The two FKs become the in and out
endpoints of a SurrealDB graph edge.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TableKind
impl RefUnwindSafe for TableKind
impl Send for TableKind
impl Sync for TableKind
impl Unpin for TableKind
impl UnsafeUnpin for TableKind
impl UnwindSafe for TableKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more