Releases: crystal-lang/crystal-db
Releases · crystal-lang/crystal-db
v0.14.0
- Allow Enumerable for query args instead of Array (#207, thanks @lwakefield)
- Replaced deprecated splat operator (#211, thanks @BigBoyBarney)
- Fix docs typo. (#208, thanks @jphaward)
- Update formatting (#209, thanks @straight-shoota)
v0.13.1
v0.13.0
- (breaking-change) Deprecate
DB.mapping. (#196, thanks @straight-shoota) - (breaking-change) Drop
Pool#checkout_some, makePoolStatementa struct. (#200, thanks @bcardiff) - Simplifications and performance improvements on pool statements. (#200, thanks @bcardiff)
- Allow `prepared_statements_cache=false`` option to disable prepared statements cache. (#194, #198, thanks @bcardiff)
- Add exception cause support to
PoolResourceLostandConnectionLostconstructors. (#199, thanks @lachlan) - Fix inflight counter on
ConnectionRefused. (#184, thanks @jgaskins) - Fix max_idle_pool_size race condition. (#186, thanks @bcardiff)
- Fix
DB::DriverSpecs#with_dbconnection_stringquery param support. (#192, thanks @lachlan) - Update docs regarding
ConnectionBuilder. (#188, thanks @bcardiff) - Add reference to
DB::Serializablein docs. (#197, thanks @straight-shoota) - Add link to crystal-tds. (#193, thanks @wonderix)
Notes for driver implementors
- Use new constructors to preserve the underlying reason of a
PoolResourceLostorConnectionLostconstructors (See #199)
v0.12.0
- (breaking-change) Refactor how drivers create connections. Allow creating
DatabasewithoutURIs. (#181, thanks @bcardiff) - Close a transaction when
returning from within its block. (#167, thanks @jgaskins) - Fix race conditions in multi-thread mode. (#178, thanks @bcardiff)
- Allow the use of
Enums when reading aResultSet. (#168, thanks @jgaskins) - Fix specs for Crystal 1.4 and 1.5. (#163, #173, thanks @straight-shoota)
- Update README. (#172, #180, thanks @amauryt, @jgaskins)
Note: The breaking-change introduced in this release does not affect consumers of the library, only driver implementors.
v0.11.0
- Fix
Connection#transactionmethod to return the block value as the result. (#159, #160, thanks @bcardiff) - Add
DB::ColumnTypeMismatchErrorerror with column and type information. (#156, thanks @jwoertink, @bcardiff) - Improve
DB::MappingExceptionerror. (#129, thanks @straight-shoota) - Close connection resource when connection is lost. (#155, thanks @stakach, @bcardiff)
- Discard closed connections in the pool when they are returned. (#154, thanks @stakach)
- Fix typo in
Mode.from_rsargument type. (#142, thanks @dukeraphaelng) - Migrate CI to GitHub Actions. (#147, #152, thanks @oprypin, thanks @straight-shoota)
This release requires Crystal 1.0.0 or later.
Note: For drivers implementations #156 adds a abstract def next_column_index : Int32 to ResultSet so there is a breaking-change that does not affect consumers of the library.