Releases: crystal-lang/crystal-db
Releases · crystal-lang/crystal-db
v0.13.1
v0.13.0
- (breaking-change) Deprecate
DB.mapping
. (#196, thanks @straight-shoota) - (breaking-change) Drop
Pool#checkout_some
, makePoolStatement
a 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
PoolResourceLost
andConnectionLost
constructors. (#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_db
connection_string
query param support. (#192, thanks @lachlan) - Update docs regarding
ConnectionBuilder
. (#188, thanks @bcardiff) - Add reference to
DB::Serializable
in 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
PoolResourceLost
orConnectionLost
constructors (See #199)
v0.12.0
- (breaking-change) Refactor how drivers create connections. Allow creating
Database
withoutURI
s. (#181, thanks @bcardiff) - Close a transaction when
return
ing from within its block. (#167, thanks @jgaskins) - Fix race conditions in multi-thread mode. (#178, thanks @bcardiff)
- Allow the use of
Enum
s 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#transaction
method to return the block value as the result. (#159, #160, thanks @bcardiff) - Add
DB::ColumnTypeMismatchError
error with column and type information. (#156, thanks @jwoertink, @bcardiff) - Improve
DB::MappingException
error. (#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_rs
argument 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.