Skip to content

Commit

Permalink
ran cargofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
amuldotexe committed Dec 20, 2024
1 parent f912771 commit b7b22f3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions bindings/python/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,9 @@ impl Cursor {
// TODO: use stmt_is_dml to set rowcount
if stmt_is_dml {
return Err(PyErr::new::<NotSupportedError, _>(
"DML statements (INSERT/UPDATE/DELETE) are not fully supported in this version"
).into());
"DML statements (INSERT/UPDATE/DELETE) are not fully supported in this version",
)
.into());
}

Ok(Cursor {
Expand Down Expand Up @@ -185,21 +186,21 @@ impl Cursor {

pub fn close(&self) -> PyResult<()> {
Err(PyErr::new::<NotSupportedError, _>(
"close() is not supported in this version"
"close() is not supported in this version",
))
}

#[pyo3(signature = (sql, parameters=None))]
pub fn executemany(&self, sql: &str, parameters: Option<Py<PyList>>) -> PyResult<()> {
Err(PyErr::new::<NotSupportedError, _>(
"executemany() is not supported in this version"
"executemany() is not supported in this version",
))
}

#[pyo3(signature = (size=None))]
pub fn fetchmany(&self, size: Option<i64>) -> PyResult<Option<Vec<PyObject>>> {
Err(PyErr::new::<NotSupportedError, _>(
"fetchmany() is not supported in this version"
"fetchmany() is not supported in this version",
))
}
}
Expand Down Expand Up @@ -238,13 +239,13 @@ impl Connection {

pub fn commit(&self) -> PyResult<()> {
Err(PyErr::new::<NotSupportedError, _>(
"Transactions are not supported in this version"
"Transactions are not supported in this version",
))
}

pub fn rollback(&self) -> PyResult<()> {
Err(PyErr::new::<NotSupportedError, _>(
"Transactions are not supported in this version"
"Transactions are not supported in this version",
))
}
}
Expand Down

0 comments on commit b7b22f3

Please sign in to comment.