mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-12-23 08:21:09 +00:00
rename functions
This commit is contained in:
parent
4a986080d2
commit
2ee0132afe
13 changed files with 307 additions and 328 deletions
|
|
@ -84,7 +84,7 @@ impl Cursor {
|
|||
let obj = params.into_bound(py);
|
||||
|
||||
for (i, elem) in obj.iter().enumerate() {
|
||||
let value = py_to_owned_value(&elem)?;
|
||||
let value = py_to_db_value(&elem)?;
|
||||
stmt.borrow_mut()
|
||||
.bind_at(NonZeroUsize::new(i + 1).unwrap(), value);
|
||||
}
|
||||
|
|
@ -343,8 +343,8 @@ fn row_to_py(py: Python, row: &turso_core::Row) -> Result<PyObject> {
|
|||
.into())
|
||||
}
|
||||
|
||||
/// Converts a Python object to a Limbo Value
|
||||
fn py_to_owned_value(obj: &Bound<PyAny>) -> Result<turso_core::Value> {
|
||||
/// Converts a Python object to a Turso Value
|
||||
fn py_to_db_value(obj: &Bound<PyAny>) -> Result<turso_core::Value> {
|
||||
if obj.is_none() {
|
||||
Ok(Value::Null)
|
||||
} else if let Ok(integer) = obj.extract::<i64>() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue