pub struct Sqlite { /* private fields */ }
Expand description
A connector interface for the SQLite database
Implementations§
Trait Implementations§
Source§impl Queryable for Sqlite
impl Queryable for Sqlite
Source§fn execute<'a>(&'a self, q: Query<'a>) -> DBIO<'a, Option<Id>> ⓘ
fn execute<'a>(&'a self, q: Query<'a>) -> DBIO<'a, Option<Id>> ⓘ
Executes the given query and returns the ID of the last inserted row.
Source§fn query<'a>(&'a self, q: Query<'a>) -> DBIO<'a, ResultSet> ⓘ
fn query<'a>(&'a self, q: Query<'a>) -> DBIO<'a, ResultSet> ⓘ
Executes the given query and returns the result set.
Source§fn query_raw<'a>(
&'a self,
sql: &'a str,
params: &'a [ParameterizedValue<'_>],
) -> DBIO<'a, ResultSet> ⓘ
fn query_raw<'a>( &'a self, sql: &'a str, params: &'a [ParameterizedValue<'_>], ) -> DBIO<'a, ResultSet> ⓘ
Executes a query given as SQL, interpolating the given parameters and
returning a set of results.
Source§fn execute_raw<'a>(
&'a self,
sql: &'a str,
params: &'a [ParameterizedValue<'_>],
) -> DBIO<'a, u64> ⓘ
fn execute_raw<'a>( &'a self, sql: &'a str, params: &'a [ParameterizedValue<'_>], ) -> DBIO<'a, u64> ⓘ
Executes a query given as SQL, interpolating the given parameters and
returning the number of affected rows.
Source§fn raw_cmd<'a>(&'a self, cmd: &'a str) -> DBIO<'a, ()> ⓘ
fn raw_cmd<'a>(&'a self, cmd: &'a str) -> DBIO<'a, ()> ⓘ
Runs a command in the database, for queries that can’t be run using
prepared statements.
fn select<'a>(&'a self, q: Select<'a>) -> DBIO<'a, ResultSet> ⓘ
Source§impl TransactionCapable for Sqlite
impl TransactionCapable for Sqlite
Source§fn start_transaction(&self) -> DBIO<'_, Transaction<'_>> ⓘ
fn start_transaction(&self) -> DBIO<'_, Transaction<'_>> ⓘ
Starts a new transaction
Auto Trait Implementations§
impl !Freeze for Sqlite
impl RefUnwindSafe for Sqlite
impl Send for Sqlite
impl Sync for Sqlite
impl Unpin 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