pub struct Rqlite;
Expand description
Rqlite database driver.
Trait Implementations§
Source§impl Database for Rqlite
impl Database for Rqlite
Source§const URL_SCHEMES: &'static [&'static str]
const URL_SCHEMES: &'static [&'static str]
The schemes for database URLs that should match this driver.
Source§type Connection = RqliteConnection
type Connection = RqliteConnection
The concrete
Connection
implementation for this database.Source§type TransactionManager = RqliteTransactionManager
type TransactionManager = RqliteTransactionManager
The concrete
TransactionManager
implementation for this database.Source§type QueryResult = RqliteQueryResult
type QueryResult = RqliteQueryResult
The concrete
QueryResult
implementation for this database.Source§type Column = RqliteColumn
type Column = RqliteColumn
The concrete
Column
implementation for this database.Source§type TypeInfo = RqliteTypeInfo
type TypeInfo = RqliteTypeInfo
The concrete
TypeInfo
implementation for this database.Source§type Value = RqliteValue
type Value = RqliteValue
The concrete type used to hold an owned copy of the not-yet-decoded value that was
received from the database.
Source§impl Decode<'_, Rqlite> for Box<str>
impl Decode<'_, Rqlite> for Box<str>
Source§fn decode(value: RqliteValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: RqliteValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Rqlite> for String
impl<'r> Decode<'r, Rqlite> for String
Source§fn decode(value: RqliteValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: RqliteValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r, T> Decode<'r, Rqlite> for Text<T>
impl<'r, T> Decode<'r, Rqlite> for Text<T>
Source§fn decode(value: RqliteValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: RqliteValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Rqlite> for f32
impl<'r> Decode<'r, Rqlite> for f32
Source§fn decode(value: RqliteValueRef<'r>) -> Result<f32, BoxDynError>
fn decode(value: RqliteValueRef<'r>) -> Result<f32, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Rqlite> for f64
impl<'r> Decode<'r, Rqlite> for f64
Source§fn decode(value: RqliteValueRef<'r>) -> Result<f64, BoxDynError>
fn decode(value: RqliteValueRef<'r>) -> Result<f64, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Rqlite> for i16
impl<'r> Decode<'r, Rqlite> for i16
Source§fn decode(value: RqliteValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: RqliteValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Rqlite> for i32
impl<'r> Decode<'r, Rqlite> for i32
Source§fn decode(value: RqliteValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: RqliteValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Rqlite> for i64
impl<'r> Decode<'r, Rqlite> for i64
Source§fn decode(value: RqliteValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: RqliteValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Rqlite> for i8
impl<'r> Decode<'r, Rqlite> for i8
Source§fn decode(value: RqliteValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: RqliteValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Rqlite> for u16
impl<'r> Decode<'r, Rqlite> for u16
Source§fn decode(value: RqliteValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: RqliteValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Rqlite> for u32
impl<'r> Decode<'r, Rqlite> for u32
Source§fn decode(value: RqliteValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: RqliteValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Rqlite> for u8
impl<'r> Decode<'r, Rqlite> for u8
Source§fn decode(value: RqliteValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: RqliteValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Encode<'_, Rqlite> for Box<str>
impl Encode<'_, Rqlite> for Box<str>
Source§impl<'q> Encode<'q, Rqlite> for &'q str
impl<'q> Encode<'q, Rqlite> for &'q str
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Rqlite> for String
impl<'q> Encode<'q, Rqlite> for String
Source§impl<'q, T> Encode<'q, Rqlite> for Text<T>where
T: Display,
impl<'q, T> Encode<'q, Rqlite> for Text<T>where
T: Display,
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Rqlite> for f32
impl<'q> Encode<'q, Rqlite> for f32
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Rqlite> for f64
impl<'q> Encode<'q, Rqlite> for f64
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Rqlite> for i16
impl<'q> Encode<'q, Rqlite> for i16
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Rqlite> for i32
impl<'q> Encode<'q, Rqlite> for i32
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Rqlite> for i64
impl<'q> Encode<'q, Rqlite> for i64
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Rqlite> for i8
impl<'q> Encode<'q, Rqlite> for i8
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Rqlite> for u16
impl<'q> Encode<'q, Rqlite> for u16
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Rqlite> for u32
impl<'q> Encode<'q, Rqlite> for u32
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Rqlite> for u8
impl<'q> Encode<'q, Rqlite> for u8
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> HasArguments<'q> for Rqlite
impl<'q> HasArguments<'q> for Rqlite
Source§impl<'q> HasStatement<'q> for Rqlite
impl<'q> HasStatement<'q> for Rqlite
Source§impl<'r> HasValueRef<'r> for Rqlite
impl<'r> HasValueRef<'r> for Rqlite
Source§impl<T> Type<Rqlite> for Text<T>
impl<T> Type<Rqlite> for Text<T>
Source§fn type_info() -> RqliteTypeInfo
fn type_info() -> RqliteTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &RqliteTypeInfo) -> bool
fn compatible(ty: &RqliteTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Rqlite> for i16
impl Type<Rqlite> for i16
Source§fn type_info() -> RqliteTypeInfo
fn type_info() -> RqliteTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &RqliteTypeInfo) -> bool
fn compatible(ty: &RqliteTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Rqlite> for i32
impl Type<Rqlite> for i32
Source§fn type_info() -> RqliteTypeInfo
fn type_info() -> RqliteTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &RqliteTypeInfo) -> bool
fn compatible(ty: &RqliteTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Rqlite> for i64
impl Type<Rqlite> for i64
Source§fn type_info() -> RqliteTypeInfo
fn type_info() -> RqliteTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &RqliteTypeInfo) -> bool
fn compatible(ty: &RqliteTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Rqlite> for i8
impl Type<Rqlite> for i8
Source§fn type_info() -> RqliteTypeInfo
fn type_info() -> RqliteTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &RqliteTypeInfo) -> bool
fn compatible(ty: &RqliteTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Rqlite> for u16
impl Type<Rqlite> for u16
Source§fn type_info() -> RqliteTypeInfo
fn type_info() -> RqliteTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &RqliteTypeInfo) -> bool
fn compatible(ty: &RqliteTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Rqlite> for u32
impl Type<Rqlite> for u32
Source§fn type_info() -> RqliteTypeInfo
fn type_info() -> RqliteTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &RqliteTypeInfo) -> bool
fn compatible(ty: &RqliteTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Rqlite> for u8
impl Type<Rqlite> for u8
Source§fn type_info() -> RqliteTypeInfo
fn type_info() -> RqliteTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &RqliteTypeInfo) -> bool
fn compatible(ty: &RqliteTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
impl HasStatementCache for Rqlite
Auto Trait Implementations§
impl Freeze for Rqlite
impl RefUnwindSafe for Rqlite
impl Send for Rqlite
impl Sync for Rqlite
impl Unpin for Rqlite
impl UnwindSafe for Rqlite
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
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>
Converts
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>
Converts
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 more