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

Method check_cursor_valid

crates/stdlib/src/_sqlite3.rs:1687–1690  ·  view source on GitHub ↗

Check if cursor is valid without retaining the lock. Use this when you only need to verify the cursor state but don't need to modify it.

(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1685 /// Check if cursor is valid without retaining the lock.
1686 /// Use this when you only need to verify the cursor state but don't need to modify it.
1687 fn check_cursor_valid(&self, vm: &VirtualMachine) -> PyResult<()> {
1688 let guard = self.inner.lock();
1689 Self::check_cursor_state(guard.as_ref(), vm)
1690 }
1691
1692 #[pymethod]
1693 fn execute(

Callers 1

executescriptMethod · 0.80

Calls 2

lockMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected