pub struct RecorderConn { /* private fields */ }Trait Implementations§
Source§impl SqliteConnection for RecorderConn
impl SqliteConnection for RecorderConn
fn execute(&mut self, sql: &str, params: &[Value]) -> Result<u64, DbError>
fn query( &mut self, sql: &str, params: &[Value], row: &mut dyn FnMut(&dyn Row), ) -> Result<(), DbError>
fn begin(&mut self) -> Result<(), DbError>
fn commit(&mut self) -> Result<(), DbError>
fn rollback(&mut self) -> Result<(), DbError>
Source§fn execute_batch(&mut self, sql: &str) -> Result<(), DbError>
fn execute_batch(&mut self, sql: &str) -> Result<(), DbError>
Several statements in one string, no parameters: a DDL script, a migration step
(day-lite’s storage speaks this). The default runs the string as one statement;
drivers whose engine executes scripts override it (the built-in native driver does).
Source§fn query_named(
&mut self,
sql: &str,
params: &[Value],
row: &mut dyn FnMut(&[String], &dyn Row),
) -> Result<(), DbError>
fn query_named( &mut self, sql: &str, params: &[Value], row: &mut dyn FnMut(&[String], &dyn Row), ) -> Result<(), DbError>
SqliteConnection::query, with the result’s column names alongside each row, for
callers that surface rows as named objects (day-lite’s JS bridge). A driver that
cannot name columns refuses rather than guessing.Auto Trait Implementations§
impl !RefUnwindSafe for RecorderConn
impl !Send for RecorderConn
impl !Sync for RecorderConn
impl !UnwindSafe for RecorderConn
impl Forget for RecorderConn
impl Freeze for RecorderConn
impl Unpin for RecorderConn
impl UnsafeUnpin for RecorderConn
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<T> ErasedDestructor for Twhere
T: 'static,
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