pub enum SQLiteValue<'a> {
Integer(i64),
Real(f64),
Text(Cow<'a, str>),
Blob(Cow<'a, [u8]>),
Null,
}sqlite only.Expand description
Represents a SQLite value
Variants§
Integer(i64)
Integer value (i64)
Real(f64)
Real value (f64)
Text(Cow<'a, str>)
Text value (borrowed or owned string)
Blob(Cow<'a, [u8]>)
Blob value (borrowed or owned binary data)
Null
NULL value
Implementations§
Source§impl SQLiteValue<'_>
impl SQLiteValue<'_>
Sourcepub fn as_ref(&self) -> SQLiteValueRef<'_>
pub fn as_ref(&self) -> SQLiteValueRef<'_>
Returns a borrowed view of this value.
Sourcepub fn into_owned(self) -> OwnedSQLiteValue
pub fn into_owned(self) -> OwnedSQLiteValue
Converts this value into an owned representation.
Sourcepub fn convert<T>(self) -> Result<T, DrizzleError>where
T: FromSQLiteValue,
pub fn convert<T>(self) -> Result<T, DrizzleError>where
T: FromSQLiteValue,
Convert this SQLite value to a Rust type using the FromSQLiteValue trait.
This provides a unified conversion interface for all types that implement
FromSQLiteValue, including primitives and enum types.
§Errors
Returns DrizzleError::ConversionError when the stored variant cannot
be decoded into T.
§Example
let value = SQLiteValue::Integer(42);
let num: i64 = value.convert()?;Sourcepub fn convert_ref<T>(&self) -> Result<T, DrizzleError>where
T: FromSQLiteValue,
pub fn convert_ref<T>(&self) -> Result<T, DrizzleError>where
T: FromSQLiteValue,
Convert a reference to this SQLite value to a Rust type.
§Errors
Returns DrizzleError::ConversionError when the stored variant cannot
be decoded into T.
Trait Implementations§
Source§impl<'a> Clone for SQLiteValue<'a>
impl<'a> Clone for SQLiteValue<'a>
Source§fn clone(&self) -> SQLiteValue<'a>
fn clone(&self) -> SQLiteValue<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'a> Debug for SQLiteValue<'a>
impl<'a> Debug for SQLiteValue<'a>
Source§impl<'a> Default for SQLiteValue<'a>
impl<'a> Default for SQLiteValue<'a>
Source§fn default() -> SQLiteValue<'a>
fn default() -> SQLiteValue<'a>
Source§impl Display for SQLiteValue<'_>
impl Display for SQLiteValue<'_>
Source§impl<'a, S, State, T, M, R, G> Expr<'a, SQLiteValue<'a>> for QueryBuilder<'a, S, State, T, M, R, G>
impl<'a, S, State, T, M, R, G> Expr<'a, SQLiteValue<'a>> for QueryBuilder<'a, S, State, T, M, R, G>
Source§type SQLType = <M as SubqueryType<'a, SQLiteValue<'a>>>::SQLType
type SQLType = <M as SubqueryType<'a, SQLiteValue<'a>>>::SQLType
Source§fn to_expr_sql(&self) -> SQL<'a, V>
fn to_expr_sql(&self) -> SQL<'a, V>
Source§fn into_expr_sql(self) -> SQL<'a, V>where
Self: Sized,
fn into_expr_sql(self) -> SQL<'a, V>where
Self: Sized,
Source§fn to_condition_sql(&self) -> Option<SQL<'a, V>>
fn to_condition_sql(&self) -> Option<SQL<'a, V>>
ConditionList. Read moreSource§fn into_condition_sql(self) -> Option<SQL<'a, V>>where
Self: Sized,
fn into_condition_sql(self) -> Option<SQL<'a, V>>where
Self: Sized,
Expr::to_condition_sql.Source§impl<'a, T> Expr<'a, SQLiteValue<'a>> for Json<T>where
T: Serialize,
A JSON document is TEXT to SQLite, so Json<T> compares against JSON (and
other TEXT) columns.
impl<'a, T> Expr<'a, SQLiteValue<'a>> for Json<T>where
T: Serialize,
A JSON document is TEXT to SQLite, so Json<T> compares against JSON (and
other TEXT) columns.
Source§fn to_expr_sql(&self) -> SQL<'a, V>
fn to_expr_sql(&self) -> SQL<'a, V>
Source§fn into_expr_sql(self) -> SQL<'a, V>where
Self: Sized,
fn into_expr_sql(self) -> SQL<'a, V>where
Self: Sized,
Source§fn to_condition_sql(&self) -> Option<SQL<'a, V>>
fn to_condition_sql(&self) -> Option<SQL<'a, V>>
ConditionList. Read moreSource§fn into_condition_sql(self) -> Option<SQL<'a, V>>where
Self: Sized,
fn into_condition_sql(self) -> Option<SQL<'a, V>>where
Self: Sized,
Expr::to_condition_sql.Source§impl<'a> From<&'a Bytes> for SQLiteValue<'a>
Available on crate feature bytes only.
impl<'a> From<&'a Bytes> for SQLiteValue<'a>
bytes only.Source§fn from(value: &'a Bytes) -> SQLiteValue<'a>
fn from(value: &'a Bytes) -> SQLiteValue<'a>
Source§impl<'a> From<&'a BytesMut> for SQLiteValue<'a>
Available on crate feature bytes only.
impl<'a> From<&'a BytesMut> for SQLiteValue<'a>
bytes only.Source§fn from(value: &'a BytesMut) -> SQLiteValue<'a>
fn from(value: &'a BytesMut) -> SQLiteValue<'a>
Source§impl<'a> From<&'a CompactString> for SQLiteValue<'a>
impl<'a> From<&'a CompactString> for SQLiteValue<'a>
Source§fn from(value: &'a CompactString) -> SQLiteValue<'a>
fn from(value: &'a CompactString) -> SQLiteValue<'a>
Source§impl<'a> From<&'a Cow<'a, SQLiteValue<'a>>> for SQLiteValue<'a>
impl<'a> From<&'a Cow<'a, SQLiteValue<'a>>> for SQLiteValue<'a>
Source§fn from(value: &'a Cow<'a, SQLiteValue<'a>>) -> SQLiteValue<'a>
fn from(value: &'a Cow<'a, SQLiteValue<'a>>) -> SQLiteValue<'a>
Source§impl<'a> From<&'a OwnedSQLiteValue> for SQLiteValue<'a>
impl<'a> From<&'a OwnedSQLiteValue> for SQLiteValue<'a>
Source§fn from(value: &'a OwnedSQLiteValue) -> SQLiteValue<'a>
fn from(value: &'a OwnedSQLiteValue) -> SQLiteValue<'a>
Source§impl<'a> From<&'a SQLiteValue<'_>> for SQLiteValueRef<'a>
impl<'a> From<&'a SQLiteValue<'_>> for SQLiteValueRef<'a>
Source§fn from(value: &'a SQLiteValue<'_>) -> SQLiteValueRef<'a>
fn from(value: &'a SQLiteValue<'_>) -> SQLiteValueRef<'a>
Source§impl<'a> From<&'a SQLiteValue<'a>> for SQLiteValue<'a>
impl<'a> From<&'a SQLiteValue<'a>> for SQLiteValue<'a>
Source§fn from(value: &'a SQLiteValue<'a>) -> SQLiteValue<'a>
fn from(value: &'a SQLiteValue<'a>) -> SQLiteValue<'a>
Source§impl<'a> From<&'a String> for SQLiteValue<'a>
impl<'a> From<&'a String> for SQLiteValue<'a>
Source§fn from(value: &'a String) -> SQLiteValue<'a>
fn from(value: &'a String) -> SQLiteValue<'a>
Source§impl<'a> From<&'a Uuid> for SQLiteValue<'a>
Available on crate feature uuid only.
impl<'a> From<&'a Uuid> for SQLiteValue<'a>
uuid only.Source§fn from(value: &'a Uuid) -> SQLiteValue<'a>
fn from(value: &'a Uuid) -> SQLiteValue<'a>
Source§impl<'a> From<&'a [u8]> for SQLiteValue<'a>
impl<'a> From<&'a [u8]> for SQLiteValue<'a>
Source§fn from(value: &'a [u8]) -> SQLiteValue<'a>
fn from(value: &'a [u8]) -> SQLiteValue<'a>
Source§impl<'a> From<&'a str> for SQLiteValue<'a>
impl<'a> From<&'a str> for SQLiteValue<'a>
Source§fn from(value: &'a str) -> SQLiteValue<'a>
fn from(value: &'a str) -> SQLiteValue<'a>
Source§impl<const N: usize> From<&ArrayString<N>> for SQLiteValue<'_>
Available on crate feature arrayvec only.
impl<const N: usize> From<&ArrayString<N>> for SQLiteValue<'_>
arrayvec only.Source§fn from(value: &ArrayString<N>) -> SQLiteValue<'_>
fn from(value: &ArrayString<N>) -> SQLiteValue<'_>
Source§impl<const N: usize> From<&ArrayVec<u8, N>> for SQLiteValue<'_>
Available on crate feature arrayvec only.
impl<const N: usize> From<&ArrayVec<u8, N>> for SQLiteValue<'_>
arrayvec only.Source§impl From<&Date> for SQLiteValue<'_>
Available on crate feature time only.
impl From<&Date> for SQLiteValue<'_>
time only.Source§fn from(value: &Date) -> SQLiteValue<'_>
fn from(value: &Date) -> SQLiteValue<'_>
Source§impl From<&Date> for SQLiteValue<'_>
Available on crate feature jiff only.
impl From<&Date> for SQLiteValue<'_>
jiff only.Source§fn from(value: &Date) -> SQLiteValue<'_>
fn from(value: &Date) -> SQLiteValue<'_>
Source§impl From<&DateTime<FixedOffset>> for SQLiteValue<'_>
Available on crate feature chrono only.
impl From<&DateTime<FixedOffset>> for SQLiteValue<'_>
chrono only.Source§fn from(value: &DateTime<FixedOffset>) -> SQLiteValue<'_>
fn from(value: &DateTime<FixedOffset>) -> SQLiteValue<'_>
Source§impl From<&DateTime> for SQLiteValue<'_>
Available on crate feature jiff only.
impl From<&DateTime> for SQLiteValue<'_>
jiff only.Source§fn from(value: &DateTime) -> SQLiteValue<'_>
fn from(value: &DateTime) -> SQLiteValue<'_>
Source§impl From<&Decimal> for SQLiteValue<'_>
Available on crate feature rust-decimal only.
impl From<&Decimal> for SQLiteValue<'_>
rust-decimal only.Source§fn from(value: &Decimal) -> SQLiteValue<'_>
fn from(value: &Decimal) -> SQLiteValue<'_>
Source§impl From<&Duration> for SQLiteValue<'_>
Available on crate feature time only.
impl From<&Duration> for SQLiteValue<'_>
time only.Source§fn from(value: &Duration) -> SQLiteValue<'_>
fn from(value: &Duration) -> SQLiteValue<'_>
Source§impl From<&NaiveDate> for SQLiteValue<'_>
Available on crate feature chrono only.
impl From<&NaiveDate> for SQLiteValue<'_>
chrono only.Source§fn from(value: &NaiveDate) -> SQLiteValue<'_>
fn from(value: &NaiveDate) -> SQLiteValue<'_>
Source§impl From<&NaiveDateTime> for SQLiteValue<'_>
Available on crate feature chrono only.
impl From<&NaiveDateTime> for SQLiteValue<'_>
chrono only.Source§fn from(value: &NaiveDateTime) -> SQLiteValue<'_>
fn from(value: &NaiveDateTime) -> SQLiteValue<'_>
Source§impl From<&NaiveTime> for SQLiteValue<'_>
Available on crate feature chrono only.
impl From<&NaiveTime> for SQLiteValue<'_>
chrono only.Source§fn from(value: &NaiveTime) -> SQLiteValue<'_>
fn from(value: &NaiveTime) -> SQLiteValue<'_>
Source§impl From<&OffsetDateTime> for SQLiteValue<'_>
Available on crate feature time only.
impl From<&OffsetDateTime> for SQLiteValue<'_>
time only.Source§fn from(value: &OffsetDateTime) -> SQLiteValue<'_>
fn from(value: &OffsetDateTime) -> SQLiteValue<'_>
Source§impl From<&PrimitiveDateTime> for SQLiteValue<'_>
Available on crate feature time only.
impl From<&PrimitiveDateTime> for SQLiteValue<'_>
time only.Source§fn from(value: &PrimitiveDateTime) -> SQLiteValue<'_>
fn from(value: &PrimitiveDateTime) -> SQLiteValue<'_>
Source§impl<'a> From<&SQLiteValue<'a>> for OwnedSQLiteValue
impl<'a> From<&SQLiteValue<'a>> for OwnedSQLiteValue
Source§fn from(value: &SQLiteValue<'a>) -> OwnedSQLiteValue
fn from(value: &SQLiteValue<'a>) -> OwnedSQLiteValue
Source§impl<const N: usize> From<&SmallVec<[u8; N]>> for SQLiteValue<'_>
Available on crate feature smallvec only.
impl<const N: usize> From<&SmallVec<[u8; N]>> for SQLiteValue<'_>
smallvec only.Source§impl From<&Time> for SQLiteValue<'_>
Available on crate feature time only.
impl From<&Time> for SQLiteValue<'_>
time only.Source§fn from(value: &Time) -> SQLiteValue<'_>
fn from(value: &Time) -> SQLiteValue<'_>
Source§impl From<&Time> for SQLiteValue<'_>
Available on crate feature jiff only.
impl From<&Time> for SQLiteValue<'_>
jiff only.Source§fn from(value: &Time) -> SQLiteValue<'_>
fn from(value: &Time) -> SQLiteValue<'_>
Source§impl From<&TimeDelta> for SQLiteValue<'_>
Available on crate feature chrono only.
impl From<&TimeDelta> for SQLiteValue<'_>
chrono only.Source§fn from(value: &TimeDelta) -> SQLiteValue<'_>
fn from(value: &TimeDelta) -> SQLiteValue<'_>
Source§impl From<&Timestamp> for SQLiteValue<'_>
Available on crate feature jiff only.
impl From<&Timestamp> for SQLiteValue<'_>
jiff only.Source§fn from(value: &Timestamp) -> SQLiteValue<'_>
fn from(value: &Timestamp) -> SQLiteValue<'_>
Source§impl From<&Value> for SQLiteValue<'_>
Available on crate feature serde only.
impl From<&Value> for SQLiteValue<'_>
serde only.Source§fn from(value: &Value) -> SQLiteValue<'_>
fn from(value: &Value) -> SQLiteValue<'_>
Source§impl<'a> From<&bool> for SQLiteValue<'a>
impl<'a> From<&bool> for SQLiteValue<'a>
Source§fn from(value: &bool) -> SQLiteValue<'a>
fn from(value: &bool) -> SQLiteValue<'a>
Source§impl From<&f32> for SQLiteValue<'_>
impl From<&f32> for SQLiteValue<'_>
Source§fn from(value: &f32) -> SQLiteValue<'_>
fn from(value: &f32) -> SQLiteValue<'_>
Source§impl From<&f64> for SQLiteValue<'_>
impl From<&f64> for SQLiteValue<'_>
Source§fn from(value: &f64) -> SQLiteValue<'_>
fn from(value: &f64) -> SQLiteValue<'_>
Source§impl<'a> From<&i8> for SQLiteValue<'a>
impl<'a> From<&i8> for SQLiteValue<'a>
Source§fn from(value: &i8) -> SQLiteValue<'a>
fn from(value: &i8) -> SQLiteValue<'a>
Source§impl<'a> From<&i16> for SQLiteValue<'a>
impl<'a> From<&i16> for SQLiteValue<'a>
Source§fn from(value: &i16) -> SQLiteValue<'a>
fn from(value: &i16) -> SQLiteValue<'a>
Source§impl<'a> From<&i32> for SQLiteValue<'a>
impl<'a> From<&i32> for SQLiteValue<'a>
Source§fn from(value: &i32) -> SQLiteValue<'a>
fn from(value: &i32) -> SQLiteValue<'a>
Source§impl From<&i64> for SQLiteValue<'_>
impl From<&i64> for SQLiteValue<'_>
Source§fn from(value: &i64) -> SQLiteValue<'_>
fn from(value: &i64) -> SQLiteValue<'_>
Source§impl<'a> From<&isize> for SQLiteValue<'a>
impl<'a> From<&isize> for SQLiteValue<'a>
Source§fn from(value: &isize) -> SQLiteValue<'a>
fn from(value: &isize) -> SQLiteValue<'a>
Source§impl<'a> From<&u8> for SQLiteValue<'a>
impl<'a> From<&u8> for SQLiteValue<'a>
Source§fn from(value: &u8) -> SQLiteValue<'a>
fn from(value: &u8) -> SQLiteValue<'a>
Source§impl<'a> From<&u16> for SQLiteValue<'a>
impl<'a> From<&u16> for SQLiteValue<'a>
Source§fn from(value: &u16) -> SQLiteValue<'a>
fn from(value: &u16) -> SQLiteValue<'a>
Source§impl<'a> From<&u32> for SQLiteValue<'a>
impl<'a> From<&u32> for SQLiteValue<'a>
Source§fn from(value: &u32) -> SQLiteValue<'a>
fn from(value: &u32) -> SQLiteValue<'a>
Source§impl From<&u64> for SQLiteValue<'_>
impl From<&u64> for SQLiteValue<'_>
Source§fn from(value: &u64) -> SQLiteValue<'_>
fn from(value: &u64) -> SQLiteValue<'_>
Source§impl<'a> From<&usize> for SQLiteValue<'a>
impl<'a> From<&usize> for SQLiteValue<'a>
Source§fn from(value: &usize) -> SQLiteValue<'a>
fn from(value: &usize) -> SQLiteValue<'a>
Source§impl<const N: usize> From<ArrayString<N>> for SQLiteValue<'_>
Available on crate feature arrayvec only.
impl<const N: usize> From<ArrayString<N>> for SQLiteValue<'_>
arrayvec only.Source§fn from(value: ArrayString<N>) -> SQLiteValue<'_>
fn from(value: ArrayString<N>) -> SQLiteValue<'_>
Source§impl<const N: usize> From<ArrayVec<u8, N>> for SQLiteValue<'_>
Available on crate feature arrayvec only.
impl<const N: usize> From<ArrayVec<u8, N>> for SQLiteValue<'_>
arrayvec only.Source§impl From<Bytes> for SQLiteValue<'_>
Available on crate feature bytes only.
impl From<Bytes> for SQLiteValue<'_>
bytes only.Source§fn from(value: Bytes) -> SQLiteValue<'_>
fn from(value: Bytes) -> SQLiteValue<'_>
Source§impl From<BytesMut> for SQLiteValue<'_>
Available on crate feature bytes only.
impl From<BytesMut> for SQLiteValue<'_>
bytes only.Source§fn from(value: BytesMut) -> SQLiteValue<'_>
fn from(value: BytesMut) -> SQLiteValue<'_>
Source§impl From<CompactString> for SQLiteValue<'_>
impl From<CompactString> for SQLiteValue<'_>
Source§fn from(value: CompactString) -> SQLiteValue<'_>
fn from(value: CompactString) -> SQLiteValue<'_>
Source§impl<'a> From<Cow<'a, SQLiteValue<'a>>> for SQLiteValue<'a>
impl<'a> From<Cow<'a, SQLiteValue<'a>>> for SQLiteValue<'a>
Source§fn from(value: Cow<'a, SQLiteValue<'a>>) -> SQLiteValue<'a>
fn from(value: Cow<'a, SQLiteValue<'a>>) -> SQLiteValue<'a>
Source§impl From<Date> for SQLiteValue<'_>
Available on crate feature time only.
impl From<Date> for SQLiteValue<'_>
time only.Source§fn from(value: Date) -> SQLiteValue<'_>
fn from(value: Date) -> SQLiteValue<'_>
Source§impl From<Date> for SQLiteValue<'_>
Available on crate feature jiff only.
impl From<Date> for SQLiteValue<'_>
jiff only.Source§fn from(value: Date) -> SQLiteValue<'_>
fn from(value: Date) -> SQLiteValue<'_>
Source§impl From<DateTime<FixedOffset>> for SQLiteValue<'_>
Available on crate feature chrono only.
impl From<DateTime<FixedOffset>> for SQLiteValue<'_>
chrono only.Source§fn from(value: DateTime<FixedOffset>) -> SQLiteValue<'_>
fn from(value: DateTime<FixedOffset>) -> SQLiteValue<'_>
Source§impl From<DateTime> for SQLiteValue<'_>
Available on crate feature jiff only.
impl From<DateTime> for SQLiteValue<'_>
jiff only.Source§fn from(value: DateTime) -> SQLiteValue<'_>
fn from(value: DateTime) -> SQLiteValue<'_>
Source§impl From<Decimal> for SQLiteValue<'_>
Available on crate feature rust-decimal only.
impl From<Decimal> for SQLiteValue<'_>
rust-decimal only.Source§fn from(value: Decimal) -> SQLiteValue<'_>
fn from(value: Decimal) -> SQLiteValue<'_>
Source§impl From<Duration> for SQLiteValue<'_>
Available on crate feature time only.
impl From<Duration> for SQLiteValue<'_>
time only.Source§fn from(value: Duration) -> SQLiteValue<'_>
fn from(value: Duration) -> SQLiteValue<'_>
Source§impl From<NaiveDate> for SQLiteValue<'_>
Available on crate feature chrono only.
impl From<NaiveDate> for SQLiteValue<'_>
chrono only.Source§fn from(value: NaiveDate) -> SQLiteValue<'_>
fn from(value: NaiveDate) -> SQLiteValue<'_>
Source§impl From<NaiveDateTime> for SQLiteValue<'_>
Available on crate feature chrono only.
impl From<NaiveDateTime> for SQLiteValue<'_>
chrono only.Source§fn from(value: NaiveDateTime) -> SQLiteValue<'_>
fn from(value: NaiveDateTime) -> SQLiteValue<'_>
Source§impl From<NaiveTime> for SQLiteValue<'_>
Available on crate feature chrono only.
impl From<NaiveTime> for SQLiteValue<'_>
chrono only.Source§fn from(value: NaiveTime) -> SQLiteValue<'_>
fn from(value: NaiveTime) -> SQLiteValue<'_>
Source§impl From<OffsetDateTime> for SQLiteValue<'_>
Available on crate feature time only.
impl From<OffsetDateTime> for SQLiteValue<'_>
time only.Source§fn from(value: OffsetDateTime) -> SQLiteValue<'_>
fn from(value: OffsetDateTime) -> SQLiteValue<'_>
Source§impl<T> From<Option<T>> for SQLiteValue<'_>where
T: TryInto<SQLiteValue<'_>>,
None is NULL.
impl<T> From<Option<T>> for SQLiteValue<'_>where
T: TryInto<SQLiteValue<'_>>,
None is NULL.
§Panics
Panics when T’s conversion fails (for example a JSON payload whose
Serialize implementation errors), rather than storing NULL in place of
the value.
Source§fn from(value: Option<T>) -> SQLiteValue<'_>
fn from(value: Option<T>) -> SQLiteValue<'_>
Source§impl From<OwnedSQLiteValue> for SQLiteValue<'_>
impl From<OwnedSQLiteValue> for SQLiteValue<'_>
Source§fn from(value: OwnedSQLiteValue) -> SQLiteValue<'_>
fn from(value: OwnedSQLiteValue) -> SQLiteValue<'_>
Source§impl From<PrimitiveDateTime> for SQLiteValue<'_>
Available on crate feature time only.
impl From<PrimitiveDateTime> for SQLiteValue<'_>
time only.Source§fn from(value: PrimitiveDateTime) -> SQLiteValue<'_>
fn from(value: PrimitiveDateTime) -> SQLiteValue<'_>
Source§impl<'a> From<SQLiteValue<'a>> for OwnedSQLiteValue
impl<'a> From<SQLiteValue<'a>> for OwnedSQLiteValue
Source§fn from(value: SQLiteValue<'a>) -> OwnedSQLiteValue
fn from(value: SQLiteValue<'a>) -> OwnedSQLiteValue
Source§impl<'a> From<SQLiteValue<'a>> for SQL<'a, SQLiteValue<'a>>
impl<'a> From<SQLiteValue<'a>> for SQL<'a, SQLiteValue<'a>>
Source§fn from(value: SQLiteValue<'a>) -> SQL<'a, SQLiteValue<'a>>
fn from(value: SQLiteValue<'a>) -> SQL<'a, SQLiteValue<'a>>
Source§impl<'a> From<SQLiteValueRef<'a>> for SQLiteValue<'a>
impl<'a> From<SQLiteValueRef<'a>> for SQLiteValue<'a>
Source§fn from(value: SQLiteValueRef<'a>) -> SQLiteValue<'a>
fn from(value: SQLiteValueRef<'a>) -> SQLiteValue<'a>
Source§impl<const N: usize> From<SmallVec<[u8; N]>> for SQLiteValue<'_>
Available on crate feature smallvec only.
impl<const N: usize> From<SmallVec<[u8; N]>> for SQLiteValue<'_>
smallvec only.Source§impl From<String> for SQLiteValue<'_>
impl From<String> for SQLiteValue<'_>
Source§fn from(value: String) -> SQLiteValue<'_>
fn from(value: String) -> SQLiteValue<'_>
Source§impl<'a, T> From<T> for SQLiteValue<'a>where
T: DrizzleSQLiteColumn,
impl<'a, T> From<T> for SQLiteValue<'a>where
T: DrizzleSQLiteColumn,
Source§fn from(value: T) -> SQLiteValue<'a>
fn from(value: T) -> SQLiteValue<'a>
Source§impl From<Time> for SQLiteValue<'_>
Available on crate feature time only.HH:MM:SS.fraction, as SQLite’s time functions read it. (ISO 8601’s
time-only format starts with a T, which they reject.)
impl From<Time> for SQLiteValue<'_>
time only.HH:MM:SS.fraction, as SQLite’s time functions read it. (ISO 8601’s
time-only format starts with a T, which they reject.)
Source§fn from(value: Time) -> SQLiteValue<'_>
fn from(value: Time) -> SQLiteValue<'_>
Source§impl From<Time> for SQLiteValue<'_>
Available on crate feature jiff only.
impl From<Time> for SQLiteValue<'_>
jiff only.Source§fn from(value: Time) -> SQLiteValue<'_>
fn from(value: Time) -> SQLiteValue<'_>
Source§impl From<TimeDelta> for SQLiteValue<'_>
Available on crate feature chrono only.
impl From<TimeDelta> for SQLiteValue<'_>
chrono only.Source§fn from(value: TimeDelta) -> SQLiteValue<'_>
fn from(value: TimeDelta) -> SQLiteValue<'_>
Source§impl From<Timestamp> for SQLiteValue<'_>
Available on crate feature jiff only.
impl From<Timestamp> for SQLiteValue<'_>
jiff only.Source§fn from(value: Timestamp) -> SQLiteValue<'_>
fn from(value: Timestamp) -> SQLiteValue<'_>
Source§impl From<Uuid> for SQLiteValue<'_>
Available on crate feature uuid only.
impl From<Uuid> for SQLiteValue<'_>
uuid only.Source§fn from(value: Uuid) -> SQLiteValue<'_>
fn from(value: Uuid) -> SQLiteValue<'_>
Source§impl From<Value> for SQLiteValue<'_>
Available on crate feature serde only.
impl From<Value> for SQLiteValue<'_>
serde only.Source§fn from(value: Value) -> SQLiteValue<'_>
fn from(value: Value) -> SQLiteValue<'_>
Source§impl From<Value> for SQLiteValue<'_>
Available on crate feature rusqlite only.
impl From<Value> for SQLiteValue<'_>
rusqlite only.Source§fn from(value: Value) -> SQLiteValue<'_>
fn from(value: Value) -> SQLiteValue<'_>
Source§impl<'a> From<ValueRef<'a>> for SQLiteValue<'a>
Available on crate feature rusqlite only.
impl<'a> From<ValueRef<'a>> for SQLiteValue<'a>
rusqlite only.Source§fn from(value: ValueRef<'a>) -> SQLiteValue<'a>
fn from(value: ValueRef<'a>) -> SQLiteValue<'a>
Source§impl<'a> From<bool> for SQLiteValue<'a>
impl<'a> From<bool> for SQLiteValue<'a>
Source§fn from(value: bool) -> SQLiteValue<'a>
fn from(value: bool) -> SQLiteValue<'a>
Source§impl From<f32> for SQLiteValue<'_>
impl From<f32> for SQLiteValue<'_>
Source§fn from(value: f32) -> SQLiteValue<'_>
fn from(value: f32) -> SQLiteValue<'_>
Source§impl From<f64> for SQLiteValue<'_>
impl From<f64> for SQLiteValue<'_>
Source§fn from(value: f64) -> SQLiteValue<'_>
fn from(value: f64) -> SQLiteValue<'_>
Source§impl<'a> From<i8> for SQLiteValue<'a>
impl<'a> From<i8> for SQLiteValue<'a>
Source§fn from(value: i8) -> SQLiteValue<'a>
fn from(value: i8) -> SQLiteValue<'a>
Source§impl<'a> From<i16> for SQLiteValue<'a>
impl<'a> From<i16> for SQLiteValue<'a>
Source§fn from(value: i16) -> SQLiteValue<'a>
fn from(value: i16) -> SQLiteValue<'a>
Source§impl<'a> From<i32> for SQLiteValue<'a>
impl<'a> From<i32> for SQLiteValue<'a>
Source§fn from(value: i32) -> SQLiteValue<'a>
fn from(value: i32) -> SQLiteValue<'a>
Source§impl From<i64> for SQLiteValue<'_>
impl From<i64> for SQLiteValue<'_>
Source§fn from(value: i64) -> SQLiteValue<'_>
fn from(value: i64) -> SQLiteValue<'_>
Source§impl<'a> From<isize> for SQLiteValue<'a>
impl<'a> From<isize> for SQLiteValue<'a>
Source§fn from(value: isize) -> SQLiteValue<'a>
fn from(value: isize) -> SQLiteValue<'a>
Source§impl<'a> From<u8> for SQLiteValue<'a>
impl<'a> From<u8> for SQLiteValue<'a>
Source§fn from(value: u8) -> SQLiteValue<'a>
fn from(value: u8) -> SQLiteValue<'a>
Source§impl<'a> From<u16> for SQLiteValue<'a>
impl<'a> From<u16> for SQLiteValue<'a>
Source§fn from(value: u16) -> SQLiteValue<'a>
fn from(value: u16) -> SQLiteValue<'a>
Source§impl<'a> From<u32> for SQLiteValue<'a>
impl<'a> From<u32> for SQLiteValue<'a>
Source§fn from(value: u32) -> SQLiteValue<'a>
fn from(value: u32) -> SQLiteValue<'a>
Source§impl From<u64> for SQLiteValue<'_>
impl From<u64> for SQLiteValue<'_>
Source§fn from(value: u64) -> SQLiteValue<'_>
fn from(value: u64) -> SQLiteValue<'_>
Source§impl<'a> From<usize> for SQLiteValue<'a>
impl<'a> From<usize> for SQLiteValue<'a>
Source§fn from(value: usize) -> SQLiteValue<'a>
fn from(value: usize) -> SQLiteValue<'a>
Source§impl FromSql for SQLiteValue<'_>
Available on crate feature rusqlite only.
impl FromSql for SQLiteValue<'_>
rusqlite only.Source§fn column_result(value: ValueRef<'_>) -> Result<SQLiteValue<'_>, FromSqlError>
fn column_result(value: ValueRef<'_>) -> Result<SQLiteValue<'_>, FromSqlError>
Source§impl IntoValue for SQLiteValue<'_>
Available on crate feature turso only.
impl IntoValue for SQLiteValue<'_>
turso only.Source§impl IntoValue for &SQLiteValue<'_>
Available on crate feature turso only.
impl IntoValue for &SQLiteValue<'_>
turso only.Source§impl<'a> PartialEq for SQLiteValue<'a>
impl<'a> PartialEq for SQLiteValue<'a>
Source§impl<'a> PartialOrd for SQLiteValue<'a>
impl<'a> PartialOrd for SQLiteValue<'a>
Source§impl SQLParam for SQLiteValue<'_>
impl SQLParam for SQLiteValue<'_>
Source§type DialectMarker = SQLiteDialect
type DialectMarker = SQLiteDialect
impl<'a> StructuralPartialEq for SQLiteValue<'a>
Source§impl<'a, Schema, State, Table, Marker, Row, Grouped> ToSQL<'a, SQLiteValue<'a>> for QueryBuilder<'a, Schema, State, Table, Marker, Row, Grouped>
impl<'a, Schema, State, Table, Marker, Row, Grouped> ToSQL<'a, SQLiteValue<'a>> for QueryBuilder<'a, Schema, State, Table, Marker, Row, Grouped>
Source§impl<'a> ToSQL<'a, SQLiteValue<'a>> for AutoVacuum
impl<'a> ToSQL<'a, SQLiteValue<'a>> for AutoVacuum
Source§impl<'a> ToSQL<'a, SQLiteValue<'a>> for JournalMode
impl<'a> ToSQL<'a, SQLiteValue<'a>> for JournalMode
Source§impl<'a> ToSQL<'a, SQLiteValue<'a>> for Synchronous
impl<'a> ToSQL<'a, SQLiteValue<'a>> for Synchronous
Source§impl<'a> ToSQL<'a, SQLiteValue<'a>> for TempStore
impl<'a> ToSQL<'a, SQLiteValue<'a>> for TempStore
Source§impl<'a> ToSQL<'a, SQLiteValue<'a>> for LockingMode
impl<'a> ToSQL<'a, SQLiteValue<'a>> for LockingMode
Source§impl<'a> ToSQL<'a, SQLiteValue<'a>> for SecureDelete
impl<'a> ToSQL<'a, SQLiteValue<'a>> for SecureDelete
Source§impl<'a> ToSQL<'a, SQLiteValue<'a>> for Encoding
impl<'a> ToSQL<'a, SQLiteValue<'a>> for Encoding
Source§impl<'a> ToSQL<'a, SQLiteValue<'a>> for CacheSpill
impl<'a> ToSQL<'a, SQLiteValue<'a>> for CacheSpill
Source§impl<'a> ToSQL<'a, SQLiteValue<'a>> for WalCheckpointMode
impl<'a> ToSQL<'a, SQLiteValue<'a>> for WalCheckpointMode
Source§impl<'a> ToSQL<'a, SQLiteValue<'a>> for WritableSchema
impl<'a> ToSQL<'a, SQLiteValue<'a>> for WritableSchema
Source§impl<'a> ToSQL<'a, SQLiteValue<'a>> for Pragma
impl<'a> ToSQL<'a, SQLiteValue<'a>> for Pragma
Source§impl<'a> ToSQL<'a, SQLiteValue<'a>> for SQLiteValue<'a>
impl<'a> ToSQL<'a, SQLiteValue<'a>> for SQLiteValue<'a>
Source§impl ToSql for SQLiteValue<'_>
Available on crate feature rusqlite only.
impl ToSql for SQLiteValue<'_>
rusqlite only.Source§impl<'a> TryFrom<&SQLiteValue<'a>> for Value
impl<'a> TryFrom<&SQLiteValue<'a>> for Value
Source§type Error = DrizzleError
type Error = DrizzleError
Source§fn try_from(
value: &SQLiteValue<'a>,
) -> Result<Value, <Value as TryFrom<&SQLiteValue<'a>>>::Error>
fn try_from( value: &SQLiteValue<'a>, ) -> Result<Value, <Value as TryFrom<&SQLiteValue<'a>>>::Error>
Source§impl<'a, T> TryFrom<Json<T>> for SQLiteValue<'a>where
T: Serialize,
The JSON text of the payload. A failing Serialize implementation is an
error here, not a silent NULL.
impl<'a, T> TryFrom<Json<T>> for SQLiteValue<'a>where
T: Serialize,
The JSON text of the payload. A failing Serialize implementation is an
error here, not a silent NULL.
Source§type Error = DrizzleError
type Error = DrizzleError
Source§fn try_from(
value: Json<T>,
) -> Result<SQLiteValue<'a>, <SQLiteValue<'a> as TryFrom<Json<T>>>::Error>
fn try_from( value: Json<T>, ) -> Result<SQLiteValue<'a>, <SQLiteValue<'a> as TryFrom<Json<T>>>::Error>
Source§impl<'a> TryFrom<SQLiteValue<'a>> for Value
impl<'a> TryFrom<SQLiteValue<'a>> for Value
Source§type Error = DrizzleError
type Error = DrizzleError
Source§fn try_from(
value: SQLiteValue<'a>,
) -> Result<Value, <Value as TryFrom<SQLiteValue<'a>>>::Error>
fn try_from( value: SQLiteValue<'a>, ) -> Result<Value, <Value as TryFrom<SQLiteValue<'a>>>::Error>
Auto Trait Implementations§
impl<'a> Freeze for SQLiteValue<'a>
impl<'a> RefUnwindSafe for SQLiteValue<'a>
impl<'a> Send for SQLiteValue<'a>
impl<'a> Sync for SQLiteValue<'a>
impl<'a> Unpin for SQLiteValue<'a>
impl<'a> UnsafeUnpin for SQLiteValue<'a>
impl<'a> UnwindSafe for SQLiteValue<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T, Out> JsonColumnArg<Out, Payload> for Twhere
Out: JsonColumnValue<T>,
impl<T, Out> JsonColumnArg<Out, Payload> for Twhere
Out: JsonColumnValue<T>,
Source§fn into_json_column(self) -> Out
fn into_json_column(self) -> Out
impl<Mk> MarkerAggValidFor<()> for Mk
Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<Scope> ScopeSatisfies<Nil, ()> for Scope
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more