From ea2a88790e03603a9db29b1915e91e88011b952e Mon Sep 17 00:00:00 2001 From: Markus Klein Date: Fri, 29 Sep 2023 00:05:49 +0200 Subject: [PATCH] bump version to 2.1.0 --- Cargo.lock | 2 +- Changelog.md | 9 +++++++++ odbc-api/Cargo.toml | 2 +- odbcsv/Cargo.toml | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 71fb8030..3457e9a1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -870,7 +870,7 @@ dependencies = [ [[package]] name = "odbc-api" -version = "2.0.0" +version = "2.1.0" dependencies = [ "anyhow", "criterion", diff --git a/Changelog.md b/Changelog.md index 5c53bf9d..d99cfb27 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,5 +1,14 @@ # Changelog +## 2.1.0 + +It is now better possible to use `odbc-api` with multithreading in completly safe code. + +* `Connection` is now `Send`. +* `StatementConnection` is now `Send`. + +According to the standard this is guaranteed to be safe. By now this has also worked in practice long enough and with enough different drivers, that this can be considered safe, not only by the ODBC standard, but also in practice. + ## 2.0.0 * Variant `Error::TooLargeValueForBuffer` now has a member `indicator`, indicating the size of the complete value in the DBMS. This has been introduced to help users decide how to pick a maximum string size in bulk fetches, in the presence of large variadic columns. diff --git a/odbc-api/Cargo.toml b/odbc-api/Cargo.toml index 09bf256f..69814ef1 100644 --- a/odbc-api/Cargo.toml +++ b/odbc-api/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "odbc-api" -version = "2.0.0" +version = "2.1.0" authors = ["Markus Klein"] edition = "2021" license = "MIT" diff --git a/odbcsv/Cargo.toml b/odbcsv/Cargo.toml index b1e4a74b..c90e4e22 100644 --- a/odbcsv/Cargo.toml +++ b/odbcsv/Cargo.toml @@ -29,7 +29,7 @@ readme = "Readme.md" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -odbc-api = { version = "2.0.0", path = "../odbc-api" } +odbc-api = { version = "2.1.0", path = "../odbc-api" } csv = "1.2.2" anyhow = "1.0.75" stderrlog = "0.5.4"