pub struct MariaDbDialect;Expand description
MariaDB’s dialect: MySQL’s, but for JSON equality.
Trait Implementations§
Source§impl Clone for MariaDbDialect
impl Clone for MariaDbDialect
impl Copy for MariaDbDialect
Source§impl Debug for MariaDbDialect
impl Debug for MariaDbDialect
Source§impl Default for MariaDbDialect
impl Default for MariaDbDialect
Source§impl SqlDialect for MariaDbDialect
impl SqlDialect for MariaDbDialect
Source§fn limit_in_subquery(&self) -> bool
fn limit_in_subquery(&self) -> bool
MySQL and MariaDB take a LIMIT in an IN subquery only a
derived table further down.
Source§fn identifier_quote(&self) -> Quote
fn identifier_quote(&self) -> Quote
The quotes around an identifier.
Source§fn numbered_markers(&self) -> bool
fn numbered_markers(&self) -> bool
Whether markers are numbered (
$1). Read moreSource§fn expression(
&self,
sql: String,
values: Vec<Value>,
) -> Result<Expr, RenderError>
fn expression( &self, sql: String, values: Vec<Value>, ) -> Result<Expr, RenderError>
Source§fn inline_values(
&self,
sql: &str,
values: &[Value],
) -> Result<String, RenderError>
fn inline_values( &self, sql: &str, values: &[Value], ) -> Result<String, RenderError>
sql with values written in place of its markers, for display.Source§fn string_literal(&self, text: &str) -> String
fn string_literal(&self, text: &str) -> String
text as a quoted string literal, escaped as inline_values
writes one, for SQL that cannot bind it: DDL, or a constant an index
expression must match.Source§fn json_containment(
&self,
column: &str,
value: &Value,
containment: JsonContainment,
) -> BoundSql
fn json_containment( &self, column: &str, value: &Value, containment: JsonContainment, ) -> BoundSql
A JSON containment test of
column against value.Source§fn json_exists(
&self,
column: &str,
existence: JsonExistence,
target: &str,
negated: bool,
) -> Result<BoundSql, RenderError>
fn json_exists( &self, column: &str, existence: JsonExistence, target: &str, negated: bool, ) -> Result<BoundSql, RenderError>
A JSON key- or path-existence test, or its negation. Read more
Source§fn array_predicate(
&self,
column: &str,
operator: ArrayOperator,
elements: Vec<Value>,
_null_allowed: bool,
) -> BoundSql
fn array_predicate( &self, column: &str, operator: ArrayOperator, elements: Vec<Value>, _null_allowed: bool, ) -> BoundSql
Source§fn array_append(&self, column: &str, element: Value) -> BoundSql
fn array_append(&self, column: &str, element: Value) -> BoundSql
column with element appended; a NULL column starts a new array.Source§fn window_default(
&self,
function: &str,
column: &str,
offset: &str,
default: &str,
over: &str,
) -> String
fn window_default( &self, function: &str, column: &str, offset: &str, default: &str, over: &str, ) -> String
LAG or LEAD (function) with a default, over the window over.Source§fn open_limit(&self) -> Option<&'static str>
fn open_limit(&self) -> Option<&'static str>
The limit an offset alone takes, where the dialect has no bare
OFFSET.Source§fn groups_frames(&self) -> bool
fn groups_frames(&self) -> bool
Whether a window frame may count
GROUPS.Source§fn update_limit(&self) -> bool
fn update_limit(&self) -> bool
Whether an
UPDATE takes ORDER BY and LIMIT itself. Where it does
not, a capped update is scoped through a primary-key subquery; the
builder renders an UpdateStatement’s limit
as it is told.Source§fn exact_key(&self, column: &str) -> String
fn exact_key(&self, column: &str) -> String
column as a value that compares byte for byte, whatever its
collation, so two spellings a case- or accent-insensitive collation
matches stay apart.Source§fn push_identifier(&self, out: &mut String, name: &str)
fn push_identifier(&self, out: &mut String, name: &str)
Append
name to out as a quoted identifier, doubling any quote inside it.Source§fn native_arrays(&self) -> bool
fn native_arrays(&self) -> bool
Whether an array column is the database’s own array type. Read more
Source§fn limit_offset(&self, limit: Option<u64>, offset: Option<u64>) -> BoundSql
fn limit_offset(&self, limit: Option<u64>, offset: Option<u64>) -> BoundSql
A query’s
LIMIT n OFFSET ?. Read moreSource§fn literal_match(
&self,
column: &str,
literal: &str,
leading: bool,
trailing: bool,
) -> Result<BoundSql, RenderError>
fn literal_match( &self, column: &str, literal: &str, leading: bool, trailing: bool, ) -> Result<BoundSql, RenderError>
A test that
column holds the text literal, preceded by anything
when leading and followed by anything when trailing: a LIKE
pattern with the literal’s %, _ and escape character escaped.
Refused when the backend cannot test literal as it is.Auto Trait Implementations§
impl Forget for MariaDbDialect
impl Freeze for MariaDbDialect
impl RefUnwindSafe for MariaDbDialect
impl Send for MariaDbDialect
impl Sync for MariaDbDialect
impl Unpin for MariaDbDialect
impl UnsafeUnpin for MariaDbDialect
impl UnwindSafe for MariaDbDialect
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