Struct sqlx_rqlite::database::Rqlite
source · pub struct Rqlite;Expand description
Rqlite database driver.
Trait Implementations§
source§impl Database for Rqlite
impl Database for Rqlite
§type Connection = RqliteConnection
type Connection = RqliteConnection
The concrete
Connection implementation for this database.§type TransactionManager = RqliteTransactionManager
type TransactionManager = RqliteTransactionManager
The concrete
TransactionManager implementation for this database.§type QueryResult = RqliteQueryResult
type QueryResult = RqliteQueryResult
The concrete
QueryResult implementation for this database.§type Column = RqliteColumn
type Column = RqliteColumn
The concrete
Column implementation for this database.§type TypeInfo = RqliteTypeInfo
type TypeInfo = RqliteTypeInfo
The concrete
TypeInfo implementation for this database.§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§const URL_SCHEMES: &'static [&'static str] = _
const URL_SCHEMES: &'static [&'static str] = _
The schemes for database URLs that should match this driver.
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
type Database = Rqlite
§type Arguments = RqliteArguments
type Arguments = RqliteArguments
The concrete
Arguments implementation for this database.§type ArgumentBuffer = Vec<Value>
type ArgumentBuffer = Vec<Value>
The concrete type used as a buffer for arguments while encoding.
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