From e3f1a308b4a555fc78a8d4148b9ee0769de89841 Mon Sep 17 00:00:00 2001 From: "Brian J. Cardiff" Date: Thu, 27 Jan 2022 10:56:35 -0300 Subject: [PATCH] Release 0.11.0 (#157) --- CHANGELOG.md | 14 ++++++++++++++ README.md | 3 ++- shard.yml | 4 ++-- src/db/version.cr | 2 +- 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 79e860511..2cf56c0be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,17 @@ +## v0.11.0 (2022-01-27) + +* Fix `Connection#transaction` method to return the block value as the result. ([#159](https://github.com/crystal-lang/crystal-db/pull/159), [#160](https://github.com/crystal-lang/crystal-db/pull/160), thanks @bcardiff) +* Add `DB::ColumnTypeMismatchError` error with column and type information. ([#156](https://github.com/crystal-lang/crystal-db/pull/156), thanks @jwoertink, @bcardiff) +* Improve `DB::MappingException` error. ([#129](https://github.com/crystal-lang/crystal-db/pull/129), thanks @straight-shoota) +* Close connection resource when connection is lost. ([#155](https://github.com/crystal-lang/crystal-db/pull/155), thanks @stakach, @bcardiff) +* Discard closed connections in the pool when they are returned. ([#154](https://github.com/crystal-lang/crystal-db/pull/154), thanks @stakach) +* Fix typo in `Mode.from_rs` argument type. ([#142](https://github.com/crystal-lang/crystal-db/pull/142), thanks @dukeraphaelng) +* Migrate CI to GitHub Actions. ([#147](https://github.com/crystal-lang/crystal-db/pull/147), [#152](https://github.com/crystal-lang/crystal-db/pull/152), thanks @oprypin, thanks @straight-shoota) + +This release requires Crystal 1.0.0 or later. + +Note: For drivers implementations [#156](https://github.com/crystal-lang/crystal-db/pull/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. + ## v0.10.1 (2021-03-22) * Add docs for `DB::Database#setup_connection` ([#139](https://github.com/crystal-lang/crystal-db/pull/139), thanks @jgaskins) diff --git a/README.md b/README.md index 107837990..51bfb69c5 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ Common db api for crystal. You will need to have a specific driver to access a d * [SQLite](https://github.com/crystal-lang/crystal-sqlite3) * [MySQL](https://github.com/crystal-lang/crystal-mysql) * [PostgreSQL](https://github.com/will/crystal-pg) +* [ODBC](https://github.com/naqvis/crystal-odbc) * [Cassandra](https://github.com/kaukas/crystal-cassandra) ## Installation @@ -81,7 +82,7 @@ Issues not yet addressed: - [x] Data type extensibility. Allow each driver to extend the data types allowed. - [x] Transactions & nested transactions. [#27](https://github.com/crystal-lang/crystal-db/pull/27) - [x] Connection pool. -- [ ] Logging +- [x] Logging - [ ] Direct access to `IO` to avoid memory allocation for blobs. ## Contributing diff --git a/shard.yml b/shard.yml index bb490ffc8..8f5eb9318 100644 --- a/shard.yml +++ b/shard.yml @@ -1,9 +1,9 @@ name: db -version: 0.10.1 +version: 0.11.0 authors: - Brian J. Cardiff -crystal: ">= 0.35.0, < 2.0.0" +crystal: ">= 1.0.0, < 2.0.0" license: MIT diff --git a/src/db/version.cr b/src/db/version.cr index ca58a3de7..5a41162c6 100644 --- a/src/db/version.cr +++ b/src/db/version.cr @@ -1,3 +1,3 @@ module DB - VERSION = "0.10.1" + VERSION = "0.11.0" end