pub struct Sqlite;Expand description
Sqlite database driver.
Trait Implementations§
Source§impl Database for Sqlite
impl Database for Sqlite
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 = SqliteConnection
type Connection = SqliteConnection
The concrete
Connection implementation for this database.Source§type TransactionManager = SqliteTransactionManager
type TransactionManager = SqliteTransactionManager
The concrete
TransactionManager implementation for this database.Source§type QueryResult = SqliteQueryResult
type QueryResult = SqliteQueryResult
The concrete
QueryResult implementation for this database.Source§type Column = SqliteColumn
type Column = SqliteColumn
The concrete
Column implementation for this database.Source§type TypeInfo = SqliteTypeInfo
type TypeInfo = SqliteTypeInfo
The concrete
TypeInfo implementation for this database.Source§type Value = SqliteValue
type Value = SqliteValue
The concrete type used to hold an owned copy of the not-yet-decoded value that was
received from the database.
Source§type ValueRef<'r> = SqliteValueRef<'r>
type ValueRef<'r> = SqliteValueRef<'r>
The concrete type used to hold a reference to the not-yet-decoded value that has just been
received from the database.
Source§type Arguments = SqliteArguments
type Arguments = SqliteArguments
The concrete
Arguments implementation for this database.Source§type ArgumentBuffer = SqliteArgumentsBuffer
type ArgumentBuffer = SqliteArgumentsBuffer
The concrete type used as a buffer for arguments while encoding.
Source§type Statement = SqliteStatement
type Statement = SqliteStatement
The concrete
Statement implementation for this database.Source§impl Encode<'_, Sqlite> for Arc<[u8]>
impl Encode<'_, Sqlite> for Arc<[u8]>
Source§fn encode_by_ref(
&self,
args: &mut SqliteArgumentsBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>
fn encode_by_ref( &self, args: &mut SqliteArgumentsBuffer, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
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 Encode<'_, Sqlite> for Arc<str>
impl Encode<'_, Sqlite> for Arc<str>
Source§fn encode(
self,
args: &mut <Sqlite as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>
fn encode( self, args: &mut <Sqlite as Database>::ArgumentBuffer, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>
Writes the value of
self into buf in the expected format for the database.Source§fn encode_by_ref(
&self,
args: &mut SqliteArgumentsBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>
fn encode_by_ref( &self, args: &mut SqliteArgumentsBuffer, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
impl HasStatementCache for Sqlite
Source§impl TypeChecking for Sqlite
impl TypeChecking for Sqlite
Source§const PARAM_CHECKING: ParamChecking = ::sqlx_core::type_checking::ParamChecking::Weak
const PARAM_CHECKING: ParamChecking = ::sqlx_core::type_checking::ParamChecking::Weak
Describes how the database in question typechecks query parameters.
Source§fn param_type_for_id(
info: &<Sqlite as Database>::TypeInfo,
preferred_crates: &PreferredCrates,
) -> Result<&'static str, Error>
fn param_type_for_id( info: &<Sqlite as Database>::TypeInfo, preferred_crates: &PreferredCrates, ) -> Result<&'static str, Error>
Get the full path of the Rust type that corresponds to the given
TypeInfo, if applicable. Read moreSource§fn return_type_for_id(
info: &<Sqlite as Database>::TypeInfo,
preferred_crates: &PreferredCrates,
) -> Result<&'static str, Error>
fn return_type_for_id( info: &<Sqlite as Database>::TypeInfo, preferred_crates: &PreferredCrates, ) -> Result<&'static str, Error>
Get the full path of the Rust type that corresponds to the given
TypeInfo, if applicable. Read moreAuto Trait Implementations§
impl Forget for Sqlite
impl Freeze for Sqlite
impl Move for Sqlite
impl RefUnwindSafe for Sqlite
impl Send for Sqlite
impl Sync for Sqlite
impl Unpin for Sqlite
impl UnsafeUnpin for Sqlite
impl UnwindSafe for Sqlite
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
impl<DB> Dialect for DBwhere
DB: Driver,
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