(&self, vm: &VirtualMachine)
| 2353 | } |
| 2354 | |
| 2355 | fn ensure_connection_open(&self, vm: &VirtualMachine) -> PyResult<()> { |
| 2356 | if self.connection.is_closed() { |
| 2357 | Err(new_programming_error( |
| 2358 | vm, |
| 2359 | "Cannot operate on a closed database".to_owned(), |
| 2360 | )) |
| 2361 | } else { |
| 2362 | Ok(()) |
| 2363 | } |
| 2364 | } |
| 2365 | |
| 2366 | #[pymethod] |
| 2367 | fn read( |