Skip to main content

Sqlite

Struct Sqlite 

Source
pub struct Sqlite;
Expand description

Sqlite database driver.

Trait Implementations§

Source§

impl Database for Sqlite

Source§

const NAME: &'static str = "SQLite"

The display name for this database driver.
Source§

const URL_SCHEMES: &'static [&'static str]

The schemes for database URLs that should match this driver.
Source§

type Connection = SqliteConnection

The concrete Connection implementation for this database.
Source§

type TransactionManager = SqliteTransactionManager

The concrete TransactionManager implementation for this database.
Source§

type Row = SqliteRow

The concrete Row implementation for this database.
Source§

type QueryResult = SqliteQueryResult

The concrete QueryResult implementation for this database.
Source§

type Column = SqliteColumn

The concrete Column implementation for this database.
Source§

type TypeInfo = SqliteTypeInfo

The concrete TypeInfo implementation for this database.
Source§

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>

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

The concrete Arguments implementation for this database.
Source§

type ArgumentBuffer = SqliteArgumentsBuffer

The concrete type used as a buffer for arguments while encoding.
Source§

type Statement = SqliteStatement

The concrete Statement implementation for this database.
Source§

impl Debug for Sqlite

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Encode<'_, Sqlite> for Arc<[u8]>

Source§

fn encode_by_ref( &self, args: &mut SqliteArgumentsBuffer, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>

Writes the value of self into buf without moving self. Read more
Source§

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.
Source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Source§

fn size_hint(&self) -> usize

Source§

impl Encode<'_, Sqlite> for Arc<str>

Source§

fn encode( self, args: &mut <Sqlite as Database>::ArgumentBuffer, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>
where Arc<str>: Sized,

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>>

Writes the value of self into buf without moving self. Read more
Source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Source§

fn size_hint(&self) -> usize

Source§

impl HasStatementCache for Sqlite

Source§

impl TypeChecking for Sqlite

Source§

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>

Get the full path of the Rust type that corresponds to the given TypeInfo, if applicable. Read more
Source§

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 more
Source§

fn get_feature_gate( _info: &<Sqlite as Database>::TypeInfo, ) -> Option<&'static str>

Get the name of the Cargo feature gate that must be enabled to process the given TypeInfo, if applicable.
Source§

fn fmt_value_debug(value: &<Sqlite as Database>::Value) -> FmtValue<'_, Sqlite>

If value is a well-known type, decode and format it using Debug. Read more

Auto 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<DB> Dialect for DB
where DB: Driver,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more