pub struct Attach {
pub path: ExprRef,
pub alias: StrRef,
pub or_replace: bool,
pub if_not_exists: bool,
pub names: Slice,
pub values: Slice,
}Expand description
ATTACH [OR REPLACE] [IF NOT EXISTS] [DATABASE] path [AS alias] [(options)].
Fields§
§path: ExprRefThe path, as an expression, because the grammar takes any expression there and the pin folds it to a string.
alias: StrRefThe name after AS, or NONE when the name comes from the path.
or_replace: boolWhether OR REPLACE was written.
if_not_exists: boolWhether IF NOT EXISTS was written.
names: SliceThe option names, in the name arena.
values: SliceThe option values, parallel to names, with NONE for an option written without one.
Trait Implementations§
impl Copy for Attach
impl Eq for Attach
impl StructuralPartialEq for Attach
Auto Trait Implementations§
impl Freeze for Attach
impl RefUnwindSafe for Attach
impl Send for Attach
impl Sync for Attach
impl Unpin for Attach
impl UnsafeUnpin for Attach
impl UnwindSafe for Attach
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