pub struct SqliteDialect;Trait Implementations§
Source§impl Clone for SqliteDialect
impl Clone for SqliteDialect
Source§fn clone(&self) -> SqliteDialect
fn clone(&self) -> SqliteDialect
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 moreimpl Copy for SqliteDialect
Source§impl Debug for SqliteDialect
impl Debug for SqliteDialect
Source§impl Default for SqliteDialect
impl Default for SqliteDialect
Source§fn default() -> SqliteDialect
fn default() -> SqliteDialect
Returns the “default value” for a type. Read more
Source§impl SqlDialect for SqliteDialect
impl SqlDialect for SqliteDialect
fn kind(&self) -> DatabaseKind
fn quote_ident(&self, ident: &str) -> String
fn placeholder(&self, _index: usize) -> String
fn schema_type_sql( &self, data_type: DataType, property: &PropertyDescriptor, ) -> Result<&'static str, SqlCompileError>
fn compile_add_column( &self, entity: &EntityDescriptor, property: &PropertyDescriptor, ) -> Result<String, SqlCompileError>
fn schema_setup_sqls(&self) -> &'static [&'static str]
fn column_definition_sql( &self, property: &PropertyDescriptor, ) -> Result<String, SqlCompileError>
fn compile_create_table( &self, entity: &EntityDescriptor, ) -> Result<String, SqlCompileError>
fn fallback_default_value_sql(&self, data_type: DataType) -> &'static str
fn compile_select( &self, entity: &EntityDescriptor, query: &SelectQuery, ) -> Result<CompiledQuery, SqlCompileError>
fn compile_select_sql( &self, entity: &EntityDescriptor, query: &SelectQuery, params: &mut Vec<Value>, ) -> Result<String, SqlCompileError>
fn compile_insert( &self, entity: &EntityDescriptor, command: &InsertCommand, ) -> Result<CompiledQuery, SqlCompileError>
fn compile_batch_insert( &self, entity: &EntityDescriptor, command: &BatchInsertCommand, ) -> Result<CompiledQuery, SqlCompileError>
fn compile_update( &self, entity: &EntityDescriptor, command: &UpdateCommand, ) -> Result<CompiledQuery, SqlCompileError>
fn compile_batch_update( &self, entity: &EntityDescriptor, command: &BatchUpdateCommand, ) -> Result<CompiledQuery, SqlCompileError>
fn compile_delete( &self, entity: &EntityDescriptor, command: &DeleteCommand, ) -> Result<CompiledQuery, SqlCompileError>
fn compile_recover( &self, entity: &EntityDescriptor, command: &RecoverCommand, ) -> Result<CompiledQuery, SqlCompileError>
fn column_sql( &self, entity: &EntityDescriptor, field: &str, ) -> Result<String, SqlCompileError>
fn order_by_sql( &self, entity: &EntityDescriptor, order_by: &OrderBy, params: &mut Vec<Value>, ) -> Result<String, SqlCompileError>
fn select_projection( &self, entity: &EntityDescriptor, query: &SelectQuery, params: &mut Vec<Value>, ) -> Result<String, SqlCompileError>
fn aggregate_projection( &self, entity: &EntityDescriptor, query: &SelectQuery, params: &mut Vec<Value>, ) -> Result<String, SqlCompileError>
fn aggregate_call_sql(&self, function: AggregateFunction, field: &str) -> String
fn aggregate_function_sql(&self, function: AggregateFunction) -> &'static str
fn compile_expr( &self, entity: &EntityDescriptor, expr: &Expr, params: &mut Vec<Value>, ) -> Result<String, SqlCompileError>
fn compile_function( &self, entity: &EntityDescriptor, function: ExprFunction, args: &[Expr], params: &mut Vec<Value>, ) -> Result<String, SqlCompileError>
fn compile_single_arg_function( &self, entity: &EntityDescriptor, function: &str, args: &[Expr], params: &mut Vec<Value>, ) -> Result<String, SqlCompileError>
Source§fn compile_gbk_function(
&self,
entity: &EntityDescriptor,
args: &[Expr],
params: &mut Vec<Value>,
) -> Result<String, SqlCompileError>
fn compile_gbk_function( &self, entity: &EntityDescriptor, args: &[Expr], params: &mut Vec<Value>, ) -> Result<String, SqlCompileError>
Compile a GBK sort expression. The default implementation returns an error
because GBK encoding conversion is dialect-specific. PostgreSQL dialects
should override this to use
convert_to(arg, 'GBK').fn compile_subquery( &self, entity: &EntityDescriptor, left: &Expr, op: BinaryOp, sub_entity: &EntityDescriptor, query: &SelectQuery, params: &mut Vec<Value>, ) -> Result<String, SqlCompileError>
fn compile_joined( &self, entity: &EntityDescriptor, parts: &[Expr], joiner: &str, params: &mut Vec<Value>, ) -> Result<String, SqlCompileError>
fn compile_in( &self, entity: &EntityDescriptor, left: &Expr, op: BinaryOp, right: &Expr, params: &mut Vec<Value>, ) -> Result<String, SqlCompileError>
Auto Trait Implementations§
impl Freeze for SqliteDialect
impl RefUnwindSafe for SqliteDialect
impl Send for SqliteDialect
impl Sync for SqliteDialect
impl Unpin for SqliteDialect
impl UnsafeUnpin for SqliteDialect
impl UnwindSafe for SqliteDialect
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