Skip to main content

Sqlite

Struct Sqlite 

Source
pub struct Sqlite;
Expand description

Trait Implementations§

Source§

impl Database for Sqlite

Source§

fn analyze(sql: &str, host: &Host<'_>) -> Lazy<Analysis>

The replayed analysis: the host answers the schema and function queries (crate::sqlite::analyze), the statement’s structured parameters expanded first.

Source§

fn errors(analysis: &Analysis, host: &Host<'_>) -> Lazy<Option<Errors>>

The unique keys, NOT NULL columns and STRICT tables the statement’s constraint errors may name, where it fires no trigger.

Source§

fn read_only(analysis: &Analysis, _host: &Host<'_>) -> Lazy<bool>

A SELECT writes nothing on SQLite, which has no writing function and no locking clause.

Source§

fn capabilities( analysis: &Analysis, host: &Host<'_>, ) -> Lazy<Option<Capabilities>>

What running the statement may do: what the statement says, and what the schema adds to its writes.

Source§

const DIALECT: Dialect = Dialect::Sqlite

The name a request carries, and the placeholder rules the lexer applies.
Source§

const FINGERPRINT: &'static str = crate::FINGERPRINT

The sources this database’s answers come from: core’s and its own ([crate::fingerprint]).
Source§

type Describe = NoDescribe

What the host answers a describe need with.
Source§

fn round( sql: &str, answers: &HashMap<String, Answer<Self::Describe>>, ) -> Response

One request’s round: the analysis, and then what it reads once the rest is settled. Postgres overrides it to settle what a server-side extension offers first.
Source§

fn unbundle(_answers: &mut HashMap<String, Answer<Self::Describe>>)

Answers that came back in a form of the database’s own, put where the analysis looks for them. By default nothing; Postgres unpacks a reylo.answer bundle.

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<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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