pub enum BuiltQuery {
CreateTable(Box<TableCreateStatement>),
DropTable(Box<TableDropStatement>),
AlterTable(Box<TableAlterStatement>),
CreateIndex(Box<IndexCreateStatement>),
DropIndex(Box<IndexDropStatement>),
RenameTable(Box<TableRenameStatement>),
CreateForeignKey(Box<ForeignKeyCreateStatement>),
DropForeignKey(Box<ForeignKeyDropStatement>),
Insert(Box<InsertStatement>),
Update(Box<UpdateStatement>),
Raw(RawSql),
}Expand description
Represents a built query that can be converted to SQL for any database backend
Variants§
CreateTable(Box<TableCreateStatement>)
DropTable(Box<TableDropStatement>)
AlterTable(Box<TableAlterStatement>)
CreateIndex(Box<IndexCreateStatement>)
DropIndex(Box<IndexDropStatement>)
RenameTable(Box<TableRenameStatement>)
CreateForeignKey(Box<ForeignKeyCreateStatement>)
DropForeignKey(Box<ForeignKeyDropStatement>)
Insert(Box<InsertStatement>)
Update(Box<UpdateStatement>)
Raw(RawSql)
Implementations§
Source§impl BuiltQuery
impl BuiltQuery
Sourcepub fn build(&self, backend: DatabaseBackend) -> String
pub fn build(&self, backend: DatabaseBackend) -> String
Build SQL string for the specified database backend
Trait Implementations§
Source§impl Clone for BuiltQuery
impl Clone for BuiltQuery
Source§fn clone(&self) -> BuiltQuery
fn clone(&self) -> BuiltQuery
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BuiltQuery
impl !RefUnwindSafe for BuiltQuery
impl !Send for BuiltQuery
impl !Sync for BuiltQuery
impl Unpin for BuiltQuery
impl !UnwindSafe for BuiltQuery
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