Skip to content

Commit

Permalink
Merge pull request #97 from taosdata/release/2022-11-30
Browse files Browse the repository at this point in the history
release: taos v0.4.10
  • Loading branch information
zitsen authored Nov 29, 2022
2 parents 7d600c0 + c274be7 commit 5a13c6c
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 27 deletions.
2 changes: 1 addition & 1 deletion taos-optin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
33 changes: 16 additions & 17 deletions taos-optin/tests/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down
11 changes: 11 additions & 0 deletions taos-query/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion taos-query/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 6 additions & 0 deletions taos-sys/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions taos-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions taos-ws/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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" }
Expand Down
8 changes: 4 additions & 4 deletions taos/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"]
Expand All @@ -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"

Expand Down

0 comments on commit 5a13c6c

Please sign in to comment.