pub struct SqlCompiler<'d, D: SqlDialect> { /* private fields */ }Expand description
Compiles a QueryBuilder or TableSchema into parameterized SQL.
Implementations§
Source§impl<'d, D: SqlDialect> SqlCompiler<'d, D>
impl<'d, D: SqlDialect> SqlCompiler<'d, D>
pub fn new(dialect: &'d D) -> Self
pub fn create_table(&self, schema: &TableSchema) -> String
pub fn drop_table(&self, table: &str) -> String
pub fn table_exists(&self, table: &str) -> (String, Vec<Value>)
Auto Trait Implementations§
impl<'d, D> Freeze for SqlCompiler<'d, D>
impl<'d, D> RefUnwindSafe for SqlCompiler<'d, D>where
&'d D: RefUnwindSafe,
impl<'d, D> Send for SqlCompiler<'d, D>
impl<'d, D> Sync for SqlCompiler<'d, D>
impl<'d, D> Unpin for SqlCompiler<'d, D>
impl<'d, D> UnsafeUnpin for SqlCompiler<'d, D>where
&'d D: UnsafeUnpin,
impl<'d, D> UnwindSafe for SqlCompiler<'d, D>where
&'d D: UnwindSafe,
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