Enum jupiter::idb::DatabaseCommand
source · pub enum DatabaseCommand {
CreateTable(String, Table),
DropTable(String),
CreateSet(String, String, Set),
DropSets(String),
}
Expand description
Describes the administrative commands which can be submitted via Database::perform.
Variants§
CreateTable(String, Table)
Creates (registers) the given table for the given name. If a table already exists with the same name, it will be replaced.
DropTable(String)
Drops (removes) the table with the given name.
CreateSet(String, String, Set)
Creates (registers) the given set for the given source and name. If a set already exists with the same name, it will be replaced.
DropSets(String)
Drops (removes) all sets of the given source.
Auto Trait Implementations§
impl !Freeze for DatabaseCommand
impl RefUnwindSafe for DatabaseCommand
impl Send for DatabaseCommand
impl Sync for DatabaseCommand
impl Unpin for DatabaseCommand
impl UnwindSafe for DatabaseCommand
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more