# Crystal-db 0.13 has been released!

**URL:** <https://forum.crystal-lang.org/t/crystal-db-0-13-has-been-released/6236>\
**Category:** Official\
**Created:** [December 21, 2023, 3:54pm UTC](https://forum.crystal-lang.org/t/crystal-db-0-13-has-been-released/6236 "2023-12-21T15:54:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bcardiff](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/bcardiff/32/3_2.png) [@bcardiff](https://forum.crystal-lang.org/u/bcardiff)\
**Post date:** [December 21, 2023, 3:54pm UTC](https://forum.crystal-lang.org/t/crystal-db-0-13-has-been-released/6236/1 "2023-12-21T15:54:27Z")

</div>

[crystal-lang/crystal-db](https://github.com/crystal-lang/crystal-db) v0.13.1 has been released and the following drivers are up to date 🎉

- [will/crystal-pg](https://github.com/will/crystal-pg/) v0.28.0
- [crystal-lang/crystal-mysql](https://github.com/crystal-lang/crystal-mysql/) v0.16.0
- [crystal-lang/crystal-sqlite3](https://github.com/crystal-lang/crystal-sqlite3) v0.21.0

The highlights of this release cycle are:

- **(breaking-change)** Deprecate `DB.mapping`. ([#196](https://github.com/crystal-lang/crystal-db/pull/196), thanks @straight-shoota)
- **(breaking-change)** Drop `Pool#checkout_some`, make `PoolStatement` a struct. ([#200](https://github.com/crystal-lang/crystal-db/pull/200), thanks @bcardiff)
- Simplifications and performance improvements on pool statements. ([#200](https://github.com/crystal-lang/crystal-db/pull/200), thanks @bcardiff)
- Allow `prepared_statements_cache=false`` option to disable prepared statements cache. ([#194](https://github.com/crystal-lang/crystal-db/pull/194), [#198](https://github.com/crystal-lang/crystal-db/pull/198), thanks @bcardiff)
- Add exception cause support to `PoolResourceLost` and `ConnectionLost` constructors. ([#199](https://github.com/crystal-lang/crystal-db/pull/199), thanks @lachlan)
- Fix inflight counter on `ConnectionRefused`. ([#184](https://github.com/crystal-lang/crystal-db/pull/184), thanks @jgaskins)
- Fix max\_idle\_pool\_size race condition. ([#186](https://github.com/crystal-lang/crystal-db/pull/186), thanks @bcardiff)

### Notes for driver implementors

- Use new constructors to preserve the underlying reason of a `PoolResourceLost` or `ConnectionLost` constructors (See [#199](https://github.com/crystal-lang/crystal-db/pull/199))
