pub struct Rules {
pub name: &'static str,
pub dialect: fn() -> Box<dyn Dialect>,
pub fold_quoted: bool,
pub nulls_smallest: bool,
pub question_placeholders: bool,
pub like_ci_default: bool,
pub like_default_escape: bool,
pub negative_limit_unlimited: bool,
}Expand description
What differs between source dialects at the AST-to-IR step.
Fields§
§name: &'static str§dialect: fn() -> Box<dyn Dialect>§fold_quoted: boolQuoted identifiers are case-insensitive too (SQLite): fold everything to lower case.
nulls_smallest: boolNULL sorts as the smallest value (SQLite) rather than the largest (PostgreSQL).
question_placeholders: boolParameters: $n (PostgreSQL) or ?, ?n, :name, @name, $name (SQLite).
like_ci_default: boolLIKE is case-insensitive by default (SQLite, ASCII only).
like_default_escape: boolLIKE has a default escape character (PostgreSQL: backslash); otherwise none.
negative_limit_unlimited: boolA negative LIMIT means no limit (SQLite).
Auto Trait Implementations§
impl Freeze for Rules
impl RefUnwindSafe for Rules
impl Send for Rules
impl Sync for Rules
impl Unpin for Rules
impl UnsafeUnpin for Rules
impl UnwindSafe for Rules
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