Skip to content

Commit 21a8aad

Browse files
committed
continue implementing transaction
1 parent f101310 commit 21a8aad

File tree

2 files changed

+245
-76
lines changed

2 files changed

+245
-76
lines changed

src/driver/connection.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ impl Connection {
9090
pub async fn execute_many<'a>(
9191
self_: pyo3::Py<Self>,
9292
querystring: String,
93-
prepared: Option<bool>,
9493
parameters: Option<Vec<Py<PyAny>>>,
94+
prepared: Option<bool>,
9595
) -> RustPSQLDriverPyResult<()> {
9696
let db_client = pyo3::Python::with_gil(|gil| self_.borrow(gil).db_client.clone());
9797
let mut params: Vec<Vec<PythonDTO>> = vec![];
@@ -168,8 +168,8 @@ impl Connection {
168168
pub async fn fetch_row(
169169
self_: pyo3::Py<Self>,
170170
querystring: String,
171-
prepared: Option<bool>,
172171
parameters: Option<pyo3::Py<PyAny>>,
172+
prepared: Option<bool>,
173173
) -> RustPSQLDriverPyResult<PSQLDriverSinglePyQueryResult> {
174174
let db_client = pyo3::Python::with_gil(|gil| self_.borrow(gil).db_client.clone());
175175

@@ -220,8 +220,8 @@ impl Connection {
220220
pub async fn fetch_val<'a>(
221221
self_: pyo3::Py<Self>,
222222
querystring: String,
223-
prepared: Option<bool>,
224223
parameters: Option<pyo3::Py<PyAny>>,
224+
prepared: Option<bool>,
225225
) -> RustPSQLDriverPyResult<Py<PyAny>> {
226226
let db_client = pyo3::Python::with_gil(|gil| self_.borrow(gil).db_client.clone());
227227

0 commit comments

Comments
 (0)