MCPcopy Index your code
hub / github.com/RustPython/RustPython / step_row_else_done

Method step_row_else_done

crates/stdlib/src/_sqlite3.rs:3044–3056  ·  view source on GitHub ↗
(self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

3042 }
3043
3044 fn step_row_else_done(self, vm: &VirtualMachine) -> PyResult<bool> {
3045 let ret = self.step();
3046
3047 if let Some(exc) = unsafe { user_function_exception().swap(None) } {
3048 Err(exc)
3049 } else if ret == SQLITE_ROW {
3050 Ok(true)
3051 } else if ret == SQLITE_DONE {
3052 Ok(false)
3053 } else {
3054 Err(SqliteRaw::from(self).error_extended(vm))
3055 }
3056 }
3057
3058 fn reset(self) {
3059 unsafe { sqlite3_reset(self.st) };

Callers 3

executemanyMethod · 0.80
executescriptMethod · 0.80
nextMethod · 0.80

Calls 5

user_function_exceptionFunction · 0.85
error_extendedMethod · 0.80
ErrClass · 0.50
stepMethod · 0.45
swapMethod · 0.45

Tested by

no test coverage detected