We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c7e8c5 commit 2b7323cCopy full SHA for 2b7323c
1 file changed
README.md
@@ -131,14 +131,12 @@ The `transaction` method will start a new transaction. It returns a
131
transaction:
132
```rust
133
let trans = try!(conn.transaction());
134
+
135
try!(trans.execute(...));
136
let stmt = try!(trans.prepare(...));
137
+// ...
138
-if the_coast_is_clear {
- trans.set_commit();
139
-}
140
-
141
-try!(trans.finish());
+try!(trans.commit());
142
```
143
The transaction will be active until the `Transaction` object falls out of
144
scope. A transaction will roll back by default. Nested transactions are
0 commit comments