mirror of
https://github.com/fluencelabs/sqlite-wasm-connector
synced 2025-04-24 00:12:13 +00:00
Run rustfmt
This commit is contained in:
parent
661e469172
commit
acc777028f
@ -112,18 +112,14 @@ impl Connection {
|
|||||||
/// recent INSERT, UPDATE, or DELETE statement.
|
/// recent INSERT, UPDATE, or DELETE statement.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn changes(&self) -> usize {
|
pub fn changes(&self) -> usize {
|
||||||
unsafe {
|
unsafe { ffi::sqlite3_changes(self.raw) as usize }
|
||||||
ffi::sqlite3_changes(self.raw) as usize
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Return the total number of rows inserted, updated, and deleted by all
|
/// Return the total number of rows inserted, updated, and deleted by all
|
||||||
/// INSERT, UPDATE, and DELETE statements since the connection was opened.
|
/// INSERT, UPDATE, and DELETE statements since the connection was opened.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn total_changes(&self) -> usize {
|
pub fn total_changes(&self) -> usize {
|
||||||
unsafe {
|
unsafe { ffi::sqlite3_total_changes(self.raw) as usize }
|
||||||
ffi::sqlite3_total_changes(self.raw) as usize
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set a callback for handling busy events.
|
/// Set a callback for handling busy events.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user