SqliteRenderer

Struct SqliteRenderer 

Source
pub struct SqliteRenderer;
Expand description

SQLite renderer

Implementations§

Source§

impl SqliteRenderer

Source

pub fn new() -> Self

Trait Implementations§

Source§

impl Default for SqliteRenderer

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl FilterRenderer for SqliteRenderer

Source§

fn quote_identifier(&self, ident: &str) -> String

Quote an identifier (field name) for this SQL dialect
Source§

fn quote_string(&self, s: &str) -> String

Quote a string literal for this SQL dialect
Source§

fn render_filter(&self, expr: &FilterExpression) -> String

Render a filter expression to SQL WHERE clause
Source§

fn render_function(&self, name: &str, args: &[FilterExpression]) -> String

Render a function call - dialect-specific implementation
Source§

fn render_contains(&self, args: &[FilterExpression]) -> String

Default implementations for string functions (ANSI SQL)
Source§

fn render_startswith(&self, args: &[FilterExpression]) -> String

Source§

fn render_endswith(&self, args: &[FilterExpression]) -> String

Source§

fn render_length(&self, args: &[FilterExpression]) -> String

Source§

fn render_indexof(&self, args: &[FilterExpression]) -> String

Source§

fn render_substring(&self, args: &[FilterExpression]) -> String

Source§

fn render_tolower(&self, args: &[FilterExpression]) -> String

Source§

fn render_toupper(&self, args: &[FilterExpression]) -> String

Source§

fn render_trim(&self, args: &[FilterExpression]) -> String

Source§

fn render_concat(&self, args: &[FilterExpression]) -> String

Source§

fn render_year(&self, args: &[FilterExpression]) -> String

Date/time functions
Source§

fn render_month(&self, args: &[FilterExpression]) -> String

Source§

fn render_day(&self, args: &[FilterExpression]) -> String

Source§

fn render_hour(&self, args: &[FilterExpression]) -> String

Source§

fn render_minute(&self, args: &[FilterExpression]) -> String

Source§

fn render_second(&self, args: &[FilterExpression]) -> String

Source§

fn render_now(&self, _args: &[FilterExpression]) -> String

Source§

fn render_round(&self, args: &[FilterExpression]) -> String

Math functions
Source§

fn render_floor(&self, args: &[FilterExpression]) -> String

Source§

fn render_ceiling(&self, args: &[FilterExpression]) -> String

Source§

fn render_lambda( &self, collection: &str, operator: &LambdaOp, variable: &str, predicate: &FilterExpression, ) -> String

Lambda operators - default implementation (may need override per dialect)
Source§

impl SqlRenderer for SqliteRenderer

Source§

fn render(&self, table_name: &str, options: &QueryOptions) -> String

Render the query options to SQL for a given table

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.