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

Function complete_statement

crates/stdlib/src/_sqlite3.rs:695–699  ·  view source on GitHub ↗
(statement: PyStrRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

693
694 #[pyfunction]
695 fn complete_statement(statement: PyStrRef, vm: &VirtualMachine) -> PyResult<bool> {
696 let s = statement.to_cstring(vm)?;
697 let ret = unsafe { sqlite3_complete(s.as_ptr()) };
698 Ok(ret == 1)
699 }
700
701 #[pyfunction]
702 fn enable_callback_tracebacks(flag: bool) {

Callers

nothing calls this directly

Calls 2

to_cstringMethod · 0.45
as_ptrMethod · 0.45

Tested by

no test coverage detected