docs: formate and note of java doc

This commit is contained in:
huolibo 2023-05-10 13:43:26 +08:00
parent 785f8764d1
commit db4110c788
2 changed files with 4 additions and 2 deletions

View File

@ -440,6 +440,7 @@ TDengine has significantly improved the bind APIs to support data writing (INSER
- JDBC REST connections do not currently support bind interface - JDBC REST connections do not currently support bind interface
- The following sample code is based on taos-jdbcdriver-3.2.1 - The following sample code is based on taos-jdbcdriver-3.2.1
- The setString method should be called for binary type data, and the setNString method should be called for nchar type data - The setString method should be called for binary type data, and the setNString method should be called for nchar type data
- Do not use `db.?` in prepareStatement, should directly use `?`, then specify the database in setTableName, for example: `prepareStatement.setTableName("db.t1")`.
<Tabs defaultValue="native"> <Tabs defaultValue="native">
<TabItem value="native" label="native connection"> <TabItem value="native" label="native connection">

View File

@ -443,6 +443,7 @@ TDengine 的 JDBC 原生连接实现大幅改进了参数绑定方式对数据
- JDBC REST 连接目前不支持参数绑定 - JDBC REST 连接目前不支持参数绑定
- 以下示例代码基于 taos-jdbcdriver-3.2.1 - 以下示例代码基于 taos-jdbcdriver-3.2.1
- binary 类型数据需要调用 setString 方法nchar 类型数据需要调用 setNString 方法 - binary 类型数据需要调用 setString 方法nchar 类型数据需要调用 setNString 方法
- 预处理语句中指定子表名称不要使用 `db.?`,应直接使用 `?`,然后在 setTableName 中指定数据库,如:`prepareStatement.setTableName("db.t1")`。
<Tabs defaultValue="native"> <Tabs defaultValue="native">
<TabItem value="native" label="原生连接"> <TabItem value="native" label="原生连接">
@ -864,7 +865,7 @@ public class ParameterBindingDemo {
用于设定 TAGS 取值的方法总共有: 用于设定 TAGS 取值的方法总共有:
````java ```java
public void setTagNull(int index, int type) public void setTagNull(int index, int type)
public void setTagBoolean(int index, boolean value) public void setTagBoolean(int index, boolean value)
public void setTagInt(int index, int value) public void setTagInt(int index, int value)
@ -912,7 +913,7 @@ public class SchemalessJniTest {
} }
} }
} }
```` ```
</TabItem> </TabItem>
<TabItem value="ws" label="WebSocket 连接"> <TabItem value="ws" label="WebSocket 连接">