From c823323f2860d2baf472f8ac986588a223d05ac0 Mon Sep 17 00:00:00 2001 From: t_max <1172915550@qq.com> Date: Mon, 17 Feb 2025 10:53:57 +0800 Subject: [PATCH] docs: C# connector release 3.1.6 --- .../en/14-reference/05-connector/40-csharp.md | 39 ++++++++++--------- .../14-reference/05-connector/40-csharp.mdx | 23 +++++------ 2 files changed, 32 insertions(+), 30 deletions(-) diff --git a/docs/en/14-reference/05-connector/40-csharp.md b/docs/en/14-reference/05-connector/40-csharp.md index 01f4f0e81d..e3db8bc351 100644 --- a/docs/en/14-reference/05-connector/40-csharp.md +++ b/docs/en/14-reference/05-connector/40-csharp.md @@ -25,6 +25,7 @@ import RequestId from "../../assets/resources/_request_id.mdx"; | Connector Version | Major Changes | TDengine Version | |-------------------|------------------------------------------------------------|--------------------| +| 3.1.6 | Optimize WebSocket connection message handling. | - | | 3.1.5 | Fix WebSocket encoding error for Chinese character length. | - | | 3.1.4 | Improved WebSocket query and insert performance. | 3.3.2.0 and higher | | 3.1.3 | Supported WebSocket auto-reconnect. | - | @@ -39,25 +40,25 @@ For error reporting in other TDengine modules, please refer to [Error Codes](../ ## Data Type Mapping -| TDengine DataType | C# Type | -|-------------------|------------------| -| TIMESTAMP | DateTime | -| TINYINT | sbyte | -| SMALLINT | short | -| INT | int | -| BIGINT | long | -| TINYINT UNSIGNED | byte | -| SMALLINT UNSIGNED | ushort | -| INT UNSIGNED | uint | -| BIGINT UNSIGNED | ulong | -| FLOAT | float | -| DOUBLE | double | -| BOOL | bool | -| BINARY | byte[] | -| NCHAR | string (utf-8 encoded) | -| JSON | byte[] | -| VARBINARY | byte[] | -| GEOMETRY | byte[] | +| TDengine DataType | C# Type | +|-------------------|----------| +| TIMESTAMP | DateTime | +| TINYINT | sbyte | +| SMALLINT | short | +| INT | int | +| BIGINT | long | +| TINYINT UNSIGNED | byte | +| SMALLINT UNSIGNED | ushort | +| INT UNSIGNED | uint | +| BIGINT UNSIGNED | ulong | +| FLOAT | float | +| DOUBLE | double | +| BOOL | bool | +| BINARY | byte[] | +| NCHAR | string | +| JSON | byte[] | +| VARBINARY | byte[] | +| GEOMETRY | byte[] | **Note**: JSON type is only supported in tags. The GEOMETRY type is binary data in little endian byte order, conforming to the WKB standard. For more details, please refer to [Data Types](../../sql-manual/data-types/) diff --git a/docs/zh/14-reference/05-connector/40-csharp.mdx b/docs/zh/14-reference/05-connector/40-csharp.mdx index f58b243689..89bba2e443 100644 --- a/docs/zh/14-reference/05-connector/40-csharp.mdx +++ b/docs/zh/14-reference/05-connector/40-csharp.mdx @@ -22,14 +22,15 @@ import RequestId from "./_request_id.mdx"; ## 版本历史 -| Connector 版本 | 主要变化 | TDengine 版本 | -|:-------------|:---------------------------|:--------------| -| 3.1.5 | 修复 websocket 协议编码中文时长度错误 | - | -| 3.1.4 | 提升 websocket 查询和写入性能 | 3.3.2.0 及更高版本 | -| 3.1.3 | 支持 WebSocket 自动重连 | - | -| 3.1.2 | 修复 schemaless 资源释放 | - | -| 3.1.1 | 支持 varbinary 和 geometry 类型 | - | -| 3.1.0 | WebSocket 使用原生实现 | 3.2.1.0 及更高版本 | +| Connector 版本 | 主要变化 | TDengine 版本 | +|:-------------|:----------------------------|:--------------| +| 3.1.6 | 优化 WebSocket 连接接收消息处理。 | - | +| 3.1.5 | 修复 WebSocket 协议编码中文时长度错误。 | - | +| 3.1.4 | 提升 WebSocket 查询和写入性能。 | 3.3.2.0 及更高版本 | +| 3.1.3 | 支持 WebSocket 自动重连。 | - | +| 3.1.2 | 修复 schemaless 资源释放。 | - | +| 3.1.1 | 支持 varbinary 和 geometry 类型。 | - | +| 3.1.0 | WebSocket 使用原生实现。 | 3.2.1.0 及更高版本 | ## 处理异常 @@ -53,14 +54,14 @@ TDengine 其他功能模块的报错,请参考 [错误码](../../../reference/ | DOUBLE | double | | BOOL | bool | | BINARY | byte[] | -| NCHAR | string (utf-8编码) | +| NCHAR | string | | JSON | byte[] | | VARBINARY | byte[] | | GEOMETRY | byte[] | **注意**:JSON 类型仅在 tag 中支持。 -GEOMETRY类型是 little endian 字节序的二进制数据,符合 WKB 规范。详细信息请参考 [数据类型](../../taos-sql/data-type/#数据类型) -WKB规范请参考[Well-Known Binary (WKB)](https://libgeos.org/specifications/wkb/) +GEOMETRY类型是 little endian 字节序的二进制数据,符合 WKB 规范。详细信息请参考 [数据类型](../../taos-sql/data-type/#数据类型)。 +WKB规范请参考[Well-Known Binary (WKB)](https://libgeos.org/specifications/wkb/)。 ## 示例程序汇总