[−][src]Struct sqlx::Sqlite
sqlite
only.Sqlite database driver.
Trait Implementations
impl Database for Sqlite
[src]
type Connection = SqliteConnection
The concrete Connection
implementation for this database.
type TransactionManager = SqliteTransactionManager
The concrete TransactionManager
implementation for this database.
type Row = SqliteRow
The concrete Row
implementation for this database.
type Done = SqliteDone
The concrete Done
implementation for this database.
type Column = SqliteColumn
The concrete Column
implementation for this database.
type TypeInfo = SqliteTypeInfo
The concrete TypeInfo
implementation for this database.
type Value = SqliteValue
The concrete type used to hold an owned copy of the not-yet-decoded value that was received from the database. Read more
impl Debug for Sqlite
[src]
impl<'r> Decode<'r, Sqlite> for NaiveDateTime
[src]
pub fn decode(
value: SqliteValueRef<'r>
) -> Result<NaiveDateTime, Box<dyn Error + 'static + Sync + Send, Global>>
[src]
value: SqliteValueRef<'r>
) -> Result<NaiveDateTime, Box<dyn Error + 'static + Sync + Send, Global>>
impl<'r> Decode<'r, Sqlite> for String
[src]
pub fn decode(
value: SqliteValueRef<'r>
) -> Result<String, Box<dyn Error + 'static + Sync + Send, Global>>
[src]
value: SqliteValueRef<'r>
) -> Result<String, Box<dyn Error + 'static + Sync + Send, Global>>
impl<'r> Decode<'r, Sqlite> for f32
[src]
pub fn decode(
value: SqliteValueRef<'r>
) -> Result<f32, Box<dyn Error + 'static + Sync + Send, Global>>
[src]
value: SqliteValueRef<'r>
) -> Result<f32, Box<dyn Error + 'static + Sync + Send, Global>>
impl<'r> Decode<'r, Sqlite> for bool
[src]
pub fn decode(
value: SqliteValueRef<'r>
) -> Result<bool, Box<dyn Error + 'static + Sync + Send, Global>>
[src]
value: SqliteValueRef<'r>
) -> Result<bool, Box<dyn Error + 'static + Sync + Send, Global>>
impl<'r> Decode<'r, Sqlite> for DateTime<Utc>
[src]
pub fn decode(
value: SqliteValueRef<'r>
) -> Result<DateTime<Utc>, Box<dyn Error + 'static + Sync + Send, Global>>
[src]
value: SqliteValueRef<'r>
) -> Result<DateTime<Utc>, Box<dyn Error + 'static + Sync + Send, Global>>
impl<'r> Decode<'r, Sqlite> for NaiveTime
[src]
pub fn decode(
value: SqliteValueRef<'r>
) -> Result<NaiveTime, Box<dyn Error + 'static + Sync + Send, Global>>
[src]
value: SqliteValueRef<'r>
) -> Result<NaiveTime, Box<dyn Error + 'static + Sync + Send, Global>>
impl<'r> Decode<'r, Sqlite> for i64
[src]
pub fn decode(
value: SqliteValueRef<'r>
) -> Result<i64, Box<dyn Error + 'static + Sync + Send, Global>>
[src]
value: SqliteValueRef<'r>
) -> Result<i64, Box<dyn Error + 'static + Sync + Send, Global>>
impl<'r> Decode<'r, Sqlite> for i8
[src]
pub fn decode(
value: SqliteValueRef<'r>
) -> Result<i8, Box<dyn Error + 'static + Sync + Send, Global>>
[src]
value: SqliteValueRef<'r>
) -> Result<i8, Box<dyn Error + 'static + Sync + Send, Global>>
impl<'r> Decode<'r, Sqlite> for i32
[src]
pub fn decode(
value: SqliteValueRef<'r>
) -> Result<i32, Box<dyn Error + 'static + Sync + Send, Global>>
[src]
value: SqliteValueRef<'r>
) -> Result<i32, Box<dyn Error + 'static + Sync + Send, Global>>
impl<'r> Decode<'r, Sqlite> for DateTime<FixedOffset>
[src]
pub fn decode(
value: SqliteValueRef<'r>
) -> Result<DateTime<FixedOffset>, Box<dyn Error + 'static + Sync + Send, Global>>
[src]
value: SqliteValueRef<'r>
) -> Result<DateTime<FixedOffset>, Box<dyn Error + 'static + Sync + Send, Global>>
impl<'r> Decode<'r, Sqlite> for &'r str
[src]
pub fn decode(
value: SqliteValueRef<'r>
) -> Result<&'r str, Box<dyn Error + 'static + Sync + Send, Global>>
[src]
value: SqliteValueRef<'r>
) -> Result<&'r str, Box<dyn Error + 'static + Sync + Send, Global>>
impl<'r> Decode<'r, Sqlite> for Vec<u8>
[src]
pub fn decode(
value: SqliteValueRef<'r>
) -> Result<Vec<u8>, Box<dyn Error + 'static + Sync + Send, Global>>
[src]
value: SqliteValueRef<'r>
) -> Result<Vec<u8>, Box<dyn Error + 'static + Sync + Send, Global>>
impl<'r> Decode<'r, Sqlite> for DateTime<Local>
[src]
pub fn decode(
value: SqliteValueRef<'r>
) -> Result<DateTime<Local>, Box<dyn Error + 'static + Sync + Send, Global>>
[src]
value: SqliteValueRef<'r>
) -> Result<DateTime<Local>, Box<dyn Error + 'static + Sync + Send, Global>>
impl<'r> Decode<'r, Sqlite> for i16
[src]
pub fn decode(
value: SqliteValueRef<'r>
) -> Result<i16, Box<dyn Error + 'static + Sync + Send, Global>>
[src]
value: SqliteValueRef<'r>
) -> Result<i16, Box<dyn Error + 'static + Sync + Send, Global>>
impl<'r> Decode<'r, Sqlite> for &'r [u8]
[src]
pub fn decode(
value: SqliteValueRef<'r>
) -> Result<&'r [u8], Box<dyn Error + 'static + Sync + Send, Global>>
[src]
value: SqliteValueRef<'r>
) -> Result<&'r [u8], Box<dyn Error + 'static + Sync + Send, Global>>
impl<'r> Decode<'r, Sqlite> for NaiveDate
[src]
pub fn decode(
value: SqliteValueRef<'r>
) -> Result<NaiveDate, Box<dyn Error + 'static + Sync + Send, Global>>
[src]
value: SqliteValueRef<'r>
) -> Result<NaiveDate, Box<dyn Error + 'static + Sync + Send, Global>>
impl<'r> Decode<'r, Sqlite> for f64
[src]
pub fn decode(
value: SqliteValueRef<'r>
) -> Result<f64, Box<dyn Error + 'static + Sync + Send, Global>>
[src]
value: SqliteValueRef<'r>
) -> Result<f64, Box<dyn Error + 'static + Sync + Send, Global>>
impl<'r, T> Decode<'r, Sqlite> for Json<T> where
T: 'r + Deserialize<'r>,
[src]
T: 'r + Deserialize<'r>,
pub fn decode(
value: SqliteValueRef<'r>
) -> Result<Json<T>, Box<dyn Error + 'static + Sync + Send, Global>>
[src]
value: SqliteValueRef<'r>
) -> Result<Json<T>, Box<dyn Error + 'static + Sync + Send, Global>>
impl<'_> Encode<'_, Sqlite> for NaiveDate
[src]
pub fn encode_by_ref(&self, buf: &mut Vec<SqliteArgumentValue<'_>>) -> IsNull
[src]
#[must_use]fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
[src]
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
[src]
fn size_hint(&self) -> usize
[src]
impl<'_> Encode<'_, Sqlite> for NaiveTime
[src]
pub fn encode_by_ref(&self, buf: &mut Vec<SqliteArgumentValue<'_>>) -> IsNull
[src]
#[must_use]fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
[src]
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
[src]
fn size_hint(&self) -> usize
[src]
impl<'_> Encode<'_, Sqlite> for NaiveDateTime
[src]
pub fn encode_by_ref(&self, buf: &mut Vec<SqliteArgumentValue<'_>>) -> IsNull
[src]
#[must_use]fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
[src]
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
[src]
fn size_hint(&self) -> usize
[src]
impl<'_, T> Encode<'_, Sqlite> for Json<T> where
T: Serialize,
[src]
T: Serialize,
pub fn encode_by_ref(&self, buf: &mut Vec<SqliteArgumentValue<'_>>) -> IsNull
[src]
#[must_use]fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
[src]
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
[src]
fn size_hint(&self) -> usize
[src]
impl<'_, Tz> Encode<'_, Sqlite> for DateTime<Tz> where
Tz: TimeZone,
<Tz as TimeZone>::Offset: Display,
[src]
Tz: TimeZone,
<Tz as TimeZone>::Offset: Display,
pub fn encode_by_ref(&self, buf: &mut Vec<SqliteArgumentValue<'_>>) -> IsNull
[src]
#[must_use]fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
[src]
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
[src]
fn size_hint(&self) -> usize
[src]
impl<'q> Encode<'q, Sqlite> for bool
[src]
pub fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
[src]
#[must_use]fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
[src]
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
[src]
fn size_hint(&self) -> usize
[src]
impl<'q> Encode<'q, Sqlite> for String
[src]
pub fn encode(self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
[src]
pub fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
[src]
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
[src]
fn size_hint(&self) -> usize
[src]
impl<'q> Encode<'q, Sqlite> for &'q [u8]
[src]
pub fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
[src]
#[must_use]fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
[src]
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
[src]
fn size_hint(&self) -> usize
[src]
impl<'q> Encode<'q, Sqlite> for f64
[src]
pub fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
[src]
#[must_use]fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
[src]
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
[src]
fn size_hint(&self) -> usize
[src]
impl<'q> Encode<'q, Sqlite> for &'q str
[src]
pub fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
[src]
#[must_use]fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
[src]
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
[src]
fn size_hint(&self) -> usize
[src]
impl<'q> Encode<'q, Sqlite> for i32
[src]
pub fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
[src]
#[must_use]fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
[src]
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
[src]
fn size_hint(&self) -> usize
[src]
impl<'q, T> Encode<'q, Sqlite> for Option<T> where
T: Encode<'q, Sqlite> + Type<Sqlite> + 'q,
[src]
T: Encode<'q, Sqlite> + Type<Sqlite> + 'q,
pub fn produces(&self) -> Option<<Sqlite as Database>::TypeInfo>
[src]
pub fn encode(
self,
buf: &mut <Sqlite as HasArguments<'q>>::ArgumentBuffer
) -> IsNull
[src]
self,
buf: &mut <Sqlite as HasArguments<'q>>::ArgumentBuffer
) -> IsNull
pub fn encode_by_ref(
&self,
buf: &mut <Sqlite as HasArguments<'q>>::ArgumentBuffer
) -> IsNull
[src]
&self,
buf: &mut <Sqlite as HasArguments<'q>>::ArgumentBuffer
) -> IsNull
pub fn size_hint(&self) -> usize
[src]
impl<'q> Encode<'q, Sqlite> for i8
[src]
pub fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
[src]
#[must_use]fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
[src]
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
[src]
fn size_hint(&self) -> usize
[src]
impl<'q> Encode<'q, Sqlite> for f32
[src]
pub fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
[src]
#[must_use]fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
[src]
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
[src]
fn size_hint(&self) -> usize
[src]
impl<'q> Encode<'q, Sqlite> for i16
[src]
pub fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
[src]
#[must_use]fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
[src]
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
[src]
fn size_hint(&self) -> usize
[src]
impl<'q> Encode<'q, Sqlite> for i64
[src]
pub fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
[src]
#[must_use]fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
[src]
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
[src]
fn size_hint(&self) -> usize
[src]
impl<'q> Encode<'q, Sqlite> for Vec<u8>
[src]
pub fn encode(self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
[src]
pub fn encode_by_ref(&self, args: &mut Vec<SqliteArgumentValue<'q>>) -> IsNull
[src]
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
[src]
fn size_hint(&self) -> usize
[src]
impl<'q> HasArguments<'q> for Sqlite
[src]
type Database = Sqlite
type Arguments = SqliteArguments<'q>
The concrete Arguments
implementation for this database.
type ArgumentBuffer = Vec<SqliteArgumentValue<'q>>
The concrete type used as a buffer for arguments while encoding.
impl<'q> HasStatement<'q> for Sqlite
[src]
type Database = Sqlite
type Statement = SqliteStatement<'q>
The concrete Statement
implementation for this database.
impl HasStatementCache for Sqlite
[src]
impl<'r> HasValueRef<'r> for Sqlite
[src]
type Database = Sqlite
type ValueRef = SqliteValueRef<'r>
The concrete type used to hold a reference to the not-yet-decoded value that has just been received from the database. Read more
impl<O, F> MapRow<Sqlite> for F where
F: Send + FnMut(SqliteRow) -> O,
O: Unpin,
[src]
F: Send + FnMut(SqliteRow) -> O,
O: Unpin,
impl MigrateDatabase for Sqlite
[src]
pub fn create_database(
uri: &str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send, Global>>
[src]
uri: &str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send, Global>>
pub fn database_exists(
uri: &str
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send, Global>>
[src]
uri: &str
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send, Global>>
pub fn drop_database(
uri: &str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send, Global>>
[src]
uri: &str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send, Global>>
impl<O, F> TryMapRow<Sqlite> for F where
F: Send + FnMut(SqliteRow) -> Result<O, Error>,
O: Unpin,
[src]
F: Send + FnMut(SqliteRow) -> Result<O, Error>,
O: Unpin,
impl Type<Sqlite> for f32
[src]
pub fn type_info() -> SqliteTypeInfo
[src]
fn compatible(ty: &<DB as Database>::TypeInfo) -> bool
[src]
impl<T> Type<Sqlite> for Json<T>
[src]
pub fn type_info() -> SqliteTypeInfo
[src]
pub fn compatible(ty: &SqliteTypeInfo) -> bool
[src]
impl Type<Sqlite> for String
[src]
pub fn type_info() -> SqliteTypeInfo
[src]
fn compatible(ty: &<DB as Database>::TypeInfo) -> bool
[src]
impl Type<Sqlite> for i8
[src]
pub fn type_info() -> SqliteTypeInfo
[src]
pub fn compatible(ty: &SqliteTypeInfo) -> bool
[src]
impl Type<Sqlite> for i64
[src]
pub fn type_info() -> SqliteTypeInfo
[src]
pub fn compatible(ty: &SqliteTypeInfo) -> bool
[src]
impl Type<Sqlite> for [u8]
[src]
pub fn type_info() -> SqliteTypeInfo
[src]
pub fn compatible(ty: &SqliteTypeInfo) -> bool
[src]
impl Type<Sqlite> for NaiveTime
[src]
pub fn type_info() -> SqliteTypeInfo
[src]
pub fn compatible(ty: &SqliteTypeInfo) -> bool
[src]
impl Type<Sqlite> for f64
[src]
pub fn type_info() -> SqliteTypeInfo
[src]
fn compatible(ty: &<DB as Database>::TypeInfo) -> bool
[src]
impl Type<Sqlite> for str
[src]
pub fn type_info() -> SqliteTypeInfo
[src]
fn compatible(ty: &<DB as Database>::TypeInfo) -> bool
[src]
impl Type<Sqlite> for bool
[src]
pub fn type_info() -> SqliteTypeInfo
[src]
pub fn compatible(ty: &SqliteTypeInfo) -> bool
[src]
impl Type<Sqlite> for NaiveDate
[src]
pub fn type_info() -> SqliteTypeInfo
[src]
pub fn compatible(ty: &SqliteTypeInfo) -> bool
[src]
impl Type<Sqlite> for i16
[src]
pub fn type_info() -> SqliteTypeInfo
[src]
pub fn compatible(ty: &SqliteTypeInfo) -> bool
[src]
impl Type<Sqlite> for Vec<u8>
[src]
pub fn type_info() -> SqliteTypeInfo
[src]
pub fn compatible(ty: &SqliteTypeInfo) -> bool
[src]
impl<Tz> Type<Sqlite> for DateTime<Tz> where
Tz: TimeZone,
[src]
Tz: TimeZone,
pub fn type_info() -> SqliteTypeInfo
[src]
pub fn compatible(ty: &SqliteTypeInfo) -> bool
[src]
impl Type<Sqlite> for NaiveDateTime
[src]
pub fn type_info() -> SqliteTypeInfo
[src]
pub fn compatible(ty: &SqliteTypeInfo) -> bool
[src]
impl Type<Sqlite> for i32
[src]
pub fn type_info() -> SqliteTypeInfo
[src]
pub fn compatible(ty: &SqliteTypeInfo) -> bool
[src]
Auto Trait Implementations
impl RefUnwindSafe for Sqlite
impl Send for Sqlite
impl Sync for Sqlite
impl Unpin for Sqlite
impl UnwindSafe for Sqlite
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,