pub struct DefineTable {
pub name: Spanned<String>,
pub overwrite: bool,
pub schemafull: bool,
pub relation: Option<RelationDef>,
pub drop: bool,
pub changefeed: bool,
pub permissions: Vec<Spanned<Expr>>,
}Expand description
DEFINE TABLE.
Fields§
§name: Spanned<String>The table name.
overwrite: boolOVERWRITE — redefine an existing table.
schemafull: boolSCHEMAFULL (vs SCHEMALESS).
relation: Option<RelationDef>TYPE RELATION ... — present when the table is an edge table.
drop: boolDEFINE TABLE ... DROP — rows are never retained.
changefeed: boolDEFINE TABLE ... CHANGEFEED <duration>.
permissions: Vec<Spanned<Expr>>PERMISSIONS FOR <action> WHERE <expr> predicate expressions. Each
WHERE predicate — from either the basic (PERMISSIONS WHERE) or the
per-action (PERMISSIONS FOR select ... WHERE) form — is retained so
the analyzer can walk it; NONE/FULL carry no predicate.
Trait Implementations§
Source§impl Clone for DefineTable
impl Clone for DefineTable
Source§fn clone(&self) -> DefineTable
fn clone(&self) -> DefineTable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DefineTable
impl Debug for DefineTable
Source§impl PartialEq for DefineTable
impl PartialEq for DefineTable
impl StructuralPartialEq for DefineTable
Auto Trait Implementations§
impl Freeze for DefineTable
impl RefUnwindSafe for DefineTable
impl Send for DefineTable
impl Sync for DefineTable
impl Unpin for DefineTable
impl UnsafeUnpin for DefineTable
impl UnwindSafe for DefineTable
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