mirror of
https://github.com/fluencelabs/sqlite-wasm-connector
synced 2025-05-07 22:32:18 +00:00
Make a cosmetic adjustment
This commit is contained in:
parent
e8f01de25d
commit
51545f4c2b
@ -52,12 +52,11 @@ impl<'l> Statement<'l> {
|
|||||||
/// The function should be called multiple times until `State::Done` is
|
/// The function should be called multiple times until `State::Done` is
|
||||||
/// reached in order to evaluate the statement entirely.
|
/// reached in order to evaluate the statement entirely.
|
||||||
pub fn next(&mut self) -> Result<State> {
|
pub fn next(&mut self) -> Result<State> {
|
||||||
let state = match unsafe { ffi::sqlite3_step(self.raw.0) } {
|
Ok(match unsafe { ffi::sqlite3_step(self.raw.0) } {
|
||||||
ffi::SQLITE_ROW => State::Row,
|
ffi::SQLITE_ROW => State::Row,
|
||||||
ffi::SQLITE_DONE => State::Done,
|
ffi::SQLITE_DONE => State::Done,
|
||||||
code => error!(self.raw.1, code),
|
code => error!(self.raw.1, code),
|
||||||
};
|
})
|
||||||
Ok(state)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Read a value from a column.
|
/// Read a value from a column.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user