pub struct PostgresqlRenderer;Expand description
PostgreSQL renderer
Implementations§
Trait Implementations§
Source§impl Default for PostgresqlRenderer
impl Default for PostgresqlRenderer
Source§impl FilterRenderer for PostgresqlRenderer
impl FilterRenderer for PostgresqlRenderer
Source§fn quote_identifier(&mut self, ident: &str) -> String
fn quote_identifier(&mut self, ident: &str) -> String
Quote an identifier (field name) for this SQL dialect
Source§fn quote_string(&mut self, s: &str) -> String
fn quote_string(&mut self, s: &str) -> String
Quote a string literal for this SQL dialect
Source§fn render_filter(&mut self, expr: &FilterExpression) -> String
fn render_filter(&mut self, expr: &FilterExpression) -> String
Render a filter expression to SQL WHERE clause
Source§fn render_number_literal(&mut self, n: f64) -> String
fn render_number_literal(&mut self, n: f64) -> String
Render a number literal
Source§fn render_boolean_literal(&mut self, b: bool) -> String
fn render_boolean_literal(&mut self, b: bool) -> String
Render a boolean literal
Source§fn render_function(&mut self, name: &str, args: &[FilterExpression]) -> String
fn render_function(&mut self, name: &str, args: &[FilterExpression]) -> String
Render a function call - dialect-specific implementation
Source§fn render_contains(&mut self, args: &[FilterExpression]) -> String
fn render_contains(&mut self, args: &[FilterExpression]) -> String
Default implementations for string functions (ANSI SQL)
fn render_startswith(&mut self, args: &[FilterExpression]) -> String
fn render_endswith(&mut self, args: &[FilterExpression]) -> String
fn render_length(&mut self, args: &[FilterExpression]) -> String
fn render_indexof(&mut self, args: &[FilterExpression]) -> String
fn render_substring(&mut self, args: &[FilterExpression]) -> String
fn render_tolower(&mut self, args: &[FilterExpression]) -> String
fn render_toupper(&mut self, args: &[FilterExpression]) -> String
fn render_trim(&mut self, args: &[FilterExpression]) -> String
fn render_concat(&mut self, args: &[FilterExpression]) -> String
Source§fn render_year(&mut self, args: &[FilterExpression]) -> String
fn render_year(&mut self, args: &[FilterExpression]) -> String
Date/time functions
fn render_month(&mut self, args: &[FilterExpression]) -> String
fn render_day(&mut self, args: &[FilterExpression]) -> String
fn render_hour(&mut self, args: &[FilterExpression]) -> String
fn render_minute(&mut self, args: &[FilterExpression]) -> String
fn render_second(&mut self, args: &[FilterExpression]) -> String
fn render_now(&mut self, _args: &[FilterExpression]) -> String
Source§fn render_round(&mut self, args: &[FilterExpression]) -> String
fn render_round(&mut self, args: &[FilterExpression]) -> String
Math functions
fn render_floor(&mut self, args: &[FilterExpression]) -> String
fn render_ceiling(&mut self, args: &[FilterExpression]) -> String
Source§fn render_lambda(
&mut self,
collection: &str,
operator: &LambdaOp,
variable: &str,
_predicate: &FilterExpression,
) -> String
fn render_lambda( &mut self, collection: &str, operator: &LambdaOp, variable: &str, _predicate: &FilterExpression, ) -> String
Lambda operators - default implementation (may need override per dialect)
Source§impl SqlRenderer for PostgresqlRenderer
impl SqlRenderer for PostgresqlRenderer
Source§fn render(&mut self, table_name: &str, options: &QueryOptions) -> RenderedQuery
fn render(&mut self, table_name: &str, options: &QueryOptions) -> RenderedQuery
Render the query options to SQL for a given table
Auto Trait Implementations§
impl Freeze for PostgresqlRenderer
impl RefUnwindSafe for PostgresqlRenderer
impl Send for PostgresqlRenderer
impl Sync for PostgresqlRenderer
impl Unpin for PostgresqlRenderer
impl UnwindSafe for PostgresqlRenderer
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