pub struct PostgresDialect;Trait Implementations§
Source§impl Clone for PostgresDialect
impl Clone for PostgresDialect
Source§fn clone(&self) -> PostgresDialect
fn clone(&self) -> PostgresDialect
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 PostgresDialect
Source§impl Debug for PostgresDialect
impl Debug for PostgresDialect
Source§impl Default for PostgresDialect
impl Default for PostgresDialect
Source§fn default() -> PostgresDialect
fn default() -> PostgresDialect
Returns the “default value” for a type. Read more
Source§impl SqlDialect for PostgresDialect
impl SqlDialect for PostgresDialect
fn kind(&self) -> DatabaseKind
fn quote_ident(&self, ident: &str) -> String
fn placeholder(&self, index: usize) -> String
fn schema_setup_sqls(&self) -> &'static [&'static str]
fn schema_type_sql( &self, data_type: DataType, _property: &PropertyDescriptor, ) -> Result<&'static str, SqlCompileError>
fn compile_in( &self, entity: &EntityDescriptor, left: &Expr, op: BinaryOp, right: &Expr, params: &mut Vec<Value>, ) -> Result<String, SqlCompileError>
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_add_column( &self, entity: &EntityDescriptor, property: &PropertyDescriptor, ) -> Result<String, SqlCompileError>
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>
Auto Trait Implementations§
impl Freeze for PostgresDialect
impl RefUnwindSafe for PostgresDialect
impl Send for PostgresDialect
impl Sync for PostgresDialect
impl Unpin for PostgresDialect
impl UnsafeUnpin for PostgresDialect
impl UnwindSafe for PostgresDialect
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