File tree Expand file tree Collapse file tree 1 file changed +23
-23
lines changed
Expand file tree Collapse file tree 1 file changed +23
-23
lines changed Original file line number Diff line number Diff line change @@ -1362,29 +1362,6 @@ impl Transaction {
13621362 . psqlpy_query ( querystring, parameters, prepared)
13631363 . await
13641364 }
1365- }
1366-
1367- impl Transaction {
1368- #[ allow( clippy:: too_many_arguments) ]
1369- pub fn new (
1370- db_client : Arc < Object > ,
1371- is_started : bool ,
1372- is_done : bool ,
1373- rollback_savepoint : HashSet < String > ,
1374- isolation_level : Option < IsolationLevel > ,
1375- read_variant : Option < ReadVariant > ,
1376- deferrable : Option < bool > ,
1377- ) -> Self {
1378- Self {
1379- db_client,
1380- is_started,
1381- is_done,
1382- isolation_level,
1383- read_variant,
1384- deferrable,
1385- rollback_savepoint,
1386- }
1387- }
13881365 /// Start the transaction.
13891366 ///
13901367 /// Execute `BEGIN` commands and mark transaction as `started`.
@@ -1413,6 +1390,29 @@ impl Transaction {
14131390
14141391 Ok ( ( ) )
14151392 }
1393+ }
1394+
1395+ impl Transaction {
1396+ #[ allow( clippy:: too_many_arguments) ]
1397+ pub fn new (
1398+ db_client : Arc < Object > ,
1399+ is_started : bool ,
1400+ is_done : bool ,
1401+ rollback_savepoint : HashSet < String > ,
1402+ isolation_level : Option < IsolationLevel > ,
1403+ read_variant : Option < ReadVariant > ,
1404+ deferrable : Option < bool > ,
1405+ ) -> Self {
1406+ Self {
1407+ db_client,
1408+ is_started,
1409+ is_done,
1410+ isolation_level,
1411+ read_variant,
1412+ deferrable,
1413+ rollback_savepoint,
1414+ }
1415+ }
14161416
14171417 /// Start transaction
14181418 /// Set up isolation level if specified
You can’t perform that action at this time.
0 commit comments