Skip to main content

SQLiteDialect

Struct SQLiteDialect 

Source
pub struct SQLiteDialect;
Expand description

Type-level marker for SQLite.

Selects SQLite type mappings (DialectTypes, SQLTypeToRust). SQLite stores UUIDs as BLOB and date/time and JSON values as TEXT.

Trait Implementations§

Source§

impl AggregatePolicy<SQLiteDialect> for Integer

Source§

type Sum = Integer

Result type of SUM.
Source§

type Avg = Real

Result type of AVG.
Source§

impl AggregatePolicy<SQLiteDialect> for Real

Source§

type Sum = Real

Result type of SUM.
Source§

type Avg = Real

Result type of AVG.
Source§

impl AggregatePolicy<SQLiteDialect> for Numeric

Source§

type Sum = Numeric

Result type of SUM.
Source§

type Avg = Real

Result type of AVG.
Source§

impl AggregatePolicy<SQLiteDialect> for Any

Source§

type Sum = Any

Result type of SUM.
Source§

type Avg = Real

Result type of AVG.
Source§

impl<Source: DataType + Compatible<Target>, Target: DataType> CastTypePolicy<SQLiteDialect, Source, Target> for ()

Source§

impl Clone for SQLiteDialect

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for SQLiteDialect

Source§

impl Debug for SQLiteDialect

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl DialectSupports<AggregateFilter> for SQLiteDialect

Source§

impl DialectSupports<Excluded> for SQLiteDialect

Source§

impl DialectSupports<GroupConcat> for SQLiteDialect

Source§

impl DialectSupports<SQLiteAggregate> for SQLiteDialect

Source§

impl DialectSupports<SQLiteDateTime> for SQLiteDialect

Source§

impl DialectSupports<Typeof> for SQLiteDialect

Source§

impl DialectTypes for SQLiteDialect

Source§

const CHAR_LENGTH_FN: &'static str = "LENGTH"

Name of the character-count function (LENGTH on SQLite).
Source§

type SmallInt = Integer

16-bit integer.
Source§

type Int = Integer

32-bit integer.
Source§

type BigInt = Integer

64-bit integer.
Source§

type Float = Real

Single-precision float.
Source§

type Double = Real

Double-precision float.
Source§

type Text = Text

Text.
Source§

type Bool = Integer

Boolean (an integer on SQLite).
Source§

type Bytes = Blob

Binary data.
Source§

type Date = Text

Calendar date.
Source§

type Time = Text

Time of day.
Source§

type Timestamp = Text

Date and time without a time zone.
Source§

type TimestampTz = Text

Date and time with a time zone.
Source§

type Uuid = Blob

UUID.
Source§

type Json = Text

JSON.
Source§

type Jsonb = Text

Binary JSON (jsonb; plain JSON where the dialect has no jsonb).
Source§

type Any = Any

A value of unknown type.
Source§

type Random = Integer

Result type of RANDOM().
Source§

type Sign = Integer

Result type of SIGN(x).
Source§

type DomainNullable<Input: Nullability> = Null

Nullability of a math function whose domain is narrower than its input type (SQRT, LN, LOG, …) given input nullability Input: SQLite and MySQL answer NULL outside the domain, PostgreSQL raises.
Source§

impl InstrPolicy for SQLiteDialect

Source§

type Output = Integer

Result type of INSTR.
Source§

impl LengthPolicy<SQLiteDialect> for Text

Source§

type Output = Integer

Result type of the length functions.
Source§

impl LengthPolicy<SQLiteDialect> for Any

Source§

type Output = Integer

Result type of the length functions.
Source§

impl Log2Policy for SQLiteDialect

Source§

type Nullable = Null

Nullability of the LOG2 result.
Source§

impl RoundingPolicy<SQLiteDialect> for Integer

Source§

type Output = Real

Result type of the rounding functions.
Source§

fn precision_operand<'a, V: SQLParam + 'a>(expr: SQL<'a, V>) -> SQL<'a, V>

Prepares the operand of ROUND(expr, precision). Read more
Source§

fn coerce_result<'a, V: SQLParam + 'a>(sql: SQL<'a, V>) -> SQL<'a, V>

Coerces a rounding function’s result to Self::Output. Read more
Source§

impl RoundingPolicy<SQLiteDialect> for Real

Source§

type Output = Real

Result type of the rounding functions.
Source§

fn precision_operand<'a, V: SQLParam + 'a>(expr: SQL<'a, V>) -> SQL<'a, V>

Prepares the operand of ROUND(expr, precision). Read more
Source§

fn coerce_result<'a, V: SQLParam + 'a>(sql: SQL<'a, V>) -> SQL<'a, V>

Coerces a rounding function’s result to Self::Output. Read more
Source§

impl RoundingPolicy<SQLiteDialect> for Numeric

Source§

type Output = Real

Result type of the rounding functions.
Source§

fn precision_operand<'a, V: SQLParam + 'a>(expr: SQL<'a, V>) -> SQL<'a, V>

Prepares the operand of ROUND(expr, precision). Read more
Source§

fn coerce_result<'a, V: SQLParam + 'a>(sql: SQL<'a, V>) -> SQL<'a, V>

Coerces a rounding function’s result to Self::Output. Read more
Source§

impl SQLTypeToRust<SQLiteDialect> for Integer

Source§

impl SQLTypeToRust<SQLiteDialect> for Text

Source§

impl SQLTypeToRust<SQLiteDialect> for Real

Source§

impl SQLTypeToRust<SQLiteDialect> for Blob

Source§

impl SQLTypeToRust<SQLiteDialect> for Numeric

Source§

impl SQLTypeToRust<SQLiteDialect> for Any

Source§

impl ValueTypeForDialect<SQLiteDialect> for i8

Source§

type SQLType = Integer

The SQL type marker.
Source§

impl ValueTypeForDialect<SQLiteDialect> for i16

Source§

type SQLType = Integer

The SQL type marker.
Source§

impl ValueTypeForDialect<SQLiteDialect> for i32

Source§

type SQLType = Integer

The SQL type marker.
Source§

impl ValueTypeForDialect<SQLiteDialect> for i64

Source§

type SQLType = Integer

The SQL type marker.
Source§

impl ValueTypeForDialect<SQLiteDialect> for isize

Source§

type SQLType = Integer

The SQL type marker.
Source§

impl ValueTypeForDialect<SQLiteDialect> for u8

Source§

type SQLType = Integer

The SQL type marker.
Source§

impl ValueTypeForDialect<SQLiteDialect> for u16

Source§

type SQLType = Integer

The SQL type marker.
Source§

impl ValueTypeForDialect<SQLiteDialect> for u32

Source§

type SQLType = Integer

The SQL type marker.
Source§

impl ValueTypeForDialect<SQLiteDialect> for u64

Source§

type SQLType = Integer

The SQL type marker.
Source§

impl ValueTypeForDialect<SQLiteDialect> for usize

Source§

type SQLType = Integer

The SQL type marker.
Source§

impl ValueTypeForDialect<SQLiteDialect> for bool

Source§

type SQLType = Integer

The SQL type marker.
Source§

impl ValueTypeForDialect<SQLiteDialect> for f32

Source§

type SQLType = Real

The SQL type marker.
Source§

impl ValueTypeForDialect<SQLiteDialect> for f64

Source§

type SQLType = Real

The SQL type marker.
Source§

impl ValueTypeForDialect<SQLiteDialect> for &str

Source§

type SQLType = Text

The SQL type marker.
Source§

impl ValueTypeForDialect<SQLiteDialect> for Cow<'_, str>

Source§

type SQLType = Text

The SQL type marker.
Source§

impl ValueTypeForDialect<SQLiteDialect> for String

Source§

type SQLType = Text

The SQL type marker.
Source§

impl ValueTypeForDialect<SQLiteDialect> for Box<String>

Source§

type SQLType = Text

The SQL type marker.
Source§

impl ValueTypeForDialect<SQLiteDialect> for Rc<String>

Source§

type SQLType = Text

The SQL type marker.
Source§

impl ValueTypeForDialect<SQLiteDialect> for Arc<String>

Source§

type SQLType = Text

The SQL type marker.
Source§

impl ValueTypeForDialect<SQLiteDialect> for Box<str>

Source§

type SQLType = Text

The SQL type marker.
Source§

impl ValueTypeForDialect<SQLiteDialect> for Rc<str>

Source§

type SQLType = Text

The SQL type marker.
Source§

impl ValueTypeForDialect<SQLiteDialect> for Arc<str>

Source§

type SQLType = Text

The SQL type marker.
Source§

impl ValueTypeForDialect<SQLiteDialect> for CompactString

Source§

type SQLType = Text

The SQL type marker.
Source§

impl ValueTypeForDialect<SQLiteDialect> for &[u8]

Source§

type SQLType = Blob

The SQL type marker.
Source§

impl ValueTypeForDialect<SQLiteDialect> for Cow<'_, [u8]>

Source§

type SQLType = Blob

The SQL type marker.
Source§

impl ValueTypeForDialect<SQLiteDialect> for Vec<u8>

Source§

type SQLType = Blob

The SQL type marker.
Source§

impl ValueTypeForDialect<SQLiteDialect> for Box<Vec<u8>>

Source§

type SQLType = Blob

The SQL type marker.
Source§

impl ValueTypeForDialect<SQLiteDialect> for Rc<Vec<u8>>

Source§

type SQLType = Blob

The SQL type marker.
Source§

impl ValueTypeForDialect<SQLiteDialect> for Arc<Vec<u8>>

Source§

type SQLType = Blob

The SQL type marker.

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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<Joined, From> JoinKey<From, JoinReverse> for Joined
where From: Joinable<Joined> + ?Sized,

Source§

fn pairs() -> &'static [(&'static str, &'static str)]

(joined_column, from_column) pairs the ON condition matches, in key order, read through Self::pair.
Source§

fn pair(pair: &(&'static str, &'static str)) -> (&'static str, &'static str)

The (joined_column, from_column) names of pair.
Source§

impl<List> ListIncludes<Nil, ()> for List

Source§

impl<Mk> MarkerAggValidFor<()> for Mk

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.
Source§

impl<T> TypeEq<T> for T