mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-26 19:41:37 +08:00
Add breaking change note about Transactions to Changelog.
This commit is contained in:
parent
599bf5acfe
commit
7fe1848ddd
@ -1,5 +1,10 @@
|
|||||||
# Version UPCOMING (...)
|
# Version UPCOMING (...)
|
||||||
|
|
||||||
|
* BREAKING CHANGE: Creating transactions from a `Connection` or savepoints from a `Transaction`
|
||||||
|
now take `&mut self` instead of `&self` to correctly represent that transactions within a
|
||||||
|
connection are inherently nested. While a transaction is alive, the parent connection or
|
||||||
|
transaction is unusable, so `Transaction` now implements `Deref<Target=Connection>`, giving
|
||||||
|
access to `Connection`'s methods via the `Transaction` itself.
|
||||||
* Adds `insert` convenience method to `Statement` which returns the row ID of an inserted row.
|
* Adds `insert` convenience method to `Statement` which returns the row ID of an inserted row.
|
||||||
* Adds `exists` convenience method returning whether a query finds one or more rows.
|
* Adds `exists` convenience method returning whether a query finds one or more rows.
|
||||||
* Adds support for serializing types from the `serde_json` crate. Requires the `serde_json` feature.
|
* Adds support for serializing types from the `serde_json` crate. Requires the `serde_json` feature.
|
||||||
|
Loading…
Reference in New Issue
Block a user