diff --git a/taos-optin/Cargo.toml b/taos-optin/Cargo.toml index bc4ced33..d27c9225 100644 --- a/taos-optin/Cargo.toml +++ b/taos-optin/Cargo.toml @@ -25,7 +25,7 @@ serde_json = "1.0" serde_repr = { version = "0.1.7", optional = true } # taos-error = { version = "0.2.0", path = "../taos-error" } taos-macros = { version = "0.*", path = "../taos-macros" } -taos-query = { version = "0.3.5", path = "../taos-query" } +taos-query = { version = "0.3.6", path = "../taos-query" } [dev-dependencies] anyhow = "1" diff --git a/taos-optin/tests/query.rs b/taos-optin/tests/query.rs index e3cc66fa..97cf8e4e 100644 --- a/taos-optin/tests/query.rs +++ b/taos-optin/tests/query.rs @@ -10,25 +10,24 @@ fn ws_sync_json() -> anyhow::Result<()> { assert_eq!(client.exec(format!("drop database if exists {db}"))?, 0); assert_eq!(client.exec(format!("create database {db} keep 36500"))?, 0); assert_eq!( - client.exec( - format!("create table {db}.stb1(ts timestamp,\ - b1 bool, c8i1 tinyint, c16i1 smallint, c32i1 int, c64i1 bigint,\ - c8u1 tinyint unsigned, c16u1 smallint unsigned, c32u1 int unsigned, c64u1 bigint unsigned,\ - cb1 binary(100), cn1 nchar(10), - - b2 bool, c8i2 tinyint, c16i2 smallint, c32i2 int, c64i2 bigint,\ - c8u2 tinyint unsigned, c16u2 smallint unsigned, c32u2 int unsigned, c64u2 bigint unsigned,\ - cb2 binary(10), cn2 nchar(16)) tags (jt json)") - )?, - 0 - ); + client.exec( + format!("create table {db}.stb1(ts timestamp,\ + b1 bool, c8i1 tinyint, c16i1 smallint, c32i1 int, c64i1 bigint,\ + c8u1 tinyint unsigned, c16u1 smallint unsigned, c32u1 int unsigned, c64u1 bigint unsigned,\ + cb1 binary(100), cn1 nchar(10),\ + b2 bool, c8i2 tinyint, c16i2 smallint, c32i2 int, c64i2 bigint,\ + c8u2 tinyint unsigned, c16u2 smallint unsigned, c32u2 int unsigned, c64u2 bigint unsigned,\ + cb2 binary(10), cn2 nchar(16)) tags (jt json)") + )?, + 0 + ); assert_eq!( client.exec(format!( - r#"insert into {db}.tb1 using {db}.stb1 tags('{{"key":"数据"}}') - values(0, true, -1, -2, -3, -4, 1, 2, 3, 4, 'abc', '涛思', - false,-5, -6, -7, -8, 5, 6, 7, 8, 'def', '数据') - (65535,NULL, NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL, NULL, NULL, - NULL, NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL, NULL, NULL)"# + "insert into {db}.tb1 using {db}.stb1 tags('{{\"key\":\"数据\"}}') \ + values(0, true, -1, -2, -3, -4, 1, 2, 3, 4, 'abc', '涛思', \ + false,-5, -6, -7, -8, 5, 6, 7, 8, 'def', '数据') \ + (65535,NULL, NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL, NULL, NULL, \ + NULL, NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL, NULL, NULL)" ))?, 2 ); diff --git a/taos-query/CHANGELOG.md b/taos-query/CHANGELOG.md index 1e68753e..46176baa 100644 --- a/taos-query/CHANGELOG.md +++ b/taos-query/CHANGELOG.md @@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.3.6] - 2022-11-29 + +### Bug Fixes +- Use from_timestamp_opt for the deprecation warning of chrono +- Remove simd-json for mips64 compatibility + + +### Enhancements +- Expose fields method to public for RawBlock + + ## [0.3.5] - 2022-11-11 ### Bug Fixes diff --git a/taos-query/Cargo.toml b/taos-query/Cargo.toml index 15c67e2f..2deae23c 100644 --- a/taos-query/Cargo.toml +++ b/taos-query/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "taos-query" -version = "0.3.5" +version = "0.3.6" documentation = "https://docs.rs/taos-query" edition = "2021" homepage = "https://github.com/taosdata/taos-connector-rust" diff --git a/taos-sys/CHANGELOG.md b/taos-sys/CHANGELOG.md index c7bca3b8..868ce779 100644 --- a/taos-sys/CHANGELOG.md +++ b/taos-sys/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.3.6] - 2022-11-29 + +### Bug Fixes +- Use new write_raw_block_with_fields API if avaliable + + ## [0.3.4] - 2022-11-02 ### Bug Fixes diff --git a/taos-sys/Cargo.toml b/taos-sys/Cargo.toml index 3452b79e..e625d221 100644 --- a/taos-sys/Cargo.toml +++ b/taos-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "taos-sys" -version = "0.3.5" +version = "0.3.6" edition = "2021" keywords = ["taos", "TDengine", "timeseries"] license = "MIT OR Apache-2.0" @@ -28,7 +28,7 @@ serde_json = "1.0" serde_repr = { version = "0.1.7", optional = true } # taos-error = { path = "../taos-error", version = "0.2.9" } taos-macros = { path = "../taos-macros", version = "0.*" } -taos-query = { path = "../taos-query", version = "0.3.5" } +taos-query = { path = "../taos-query", version = "0.3.6" } [build-dependencies] dotenv = "0.15.0" diff --git a/taos-ws/Cargo.toml b/taos-ws/Cargo.toml index d3b07c8e..19fcb84d 100644 --- a/taos-ws/Cargo.toml +++ b/taos-ws/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "taos-ws" -version = "0.3.11" +version = "0.3.12" edition = "2021" keywords = ["taos", "TDengine", "timeseries", "database"] license = "MIT OR Apache-2.0" @@ -24,7 +24,7 @@ serde = { version = "1", features = ["derive"] } serde_json = { version = "1" } serde_repr = "0.1.8" serde_with = "2.0.0" -taos-query = { path = "../taos-query", version = "0.3.5" } +taos-query = { path = "../taos-query", version = "0.3.6" } thiserror = "1" tokio = { version = "1", features = ["full"] } tokio-tungstenite = { version = "0.17" } diff --git a/taos/Cargo.toml b/taos/Cargo.toml index 52d892b9..c675b885 100644 --- a/taos/Cargo.toml +++ b/taos/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "taos" -version = "0.4.9" +version = "0.4.10" categories = ["database", "api-bindings", "asynchronous"] edition = "2021" keywords = ["timeseries", "database", "tdengine", "taosdata", "connection"] @@ -16,10 +16,10 @@ no-default-features = true [dependencies] anyhow = "1" async-trait = "0.1" -taos-query = { path = "../taos-query", version = "0.3.5" } +taos-query = { path = "../taos-query", version = "0.3.6" } taos-optin = { path = "../taos-optin", version = "0.1.4", optional = true } -taos-sys = { path = "../taos-sys", version = "0.3.5", optional = true } -taos-ws = { path = "../taos-ws", version = "0.3.11", optional = true } +taos-sys = { path = "../taos-sys", version = "0.3.6", optional = true } +taos-ws = { path = "../taos-ws", version = "0.3.12", optional = true } thiserror = "1"