From 8e2ce0d286654356422a488fc7991add41a01988 Mon Sep 17 00:00:00 2001 From: Rui Date: Wed, 7 Jan 2026 15:54:51 +0800 Subject: [PATCH 1/2] commit-message: add en update for jdbc --- .../connect-kaiwudb/java/connect-jdbc.md | 49 ++++++++++--------- 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/en/development/connect-kaiwudb/java/connect-jdbc.md b/en/development/connect-kaiwudb/java/connect-jdbc.md index e63525ea..bb60e4ba 100644 --- a/en/development/connect-kaiwudb/java/connect-jdbc.md +++ b/en/development/connect-kaiwudb/java/connect-jdbc.md @@ -7,9 +7,9 @@ id: connect-jdbc Java Database Connectivity (JDBC) is the standard API for accessing databases in Java applications. It provides a comprehensive set of interfaces that enable Java applications to interact with various database types. -KWDB offers a JDBC driver that allows Java applications to connect to KWDB instances and perform operations such as querying, inserting, updating, and deleting data. The driver handles the conversion of Java data types to their corresponding JDBC types before sending them to the database. For more information on data type conversions, see [Supported Data Types](#supported-data-types). +KaiwuDB JDBC driver is the official Java connector for KWDB. It allows Java applications to connect to KWDB instances and perform operations such as querying, inserting, updating, and deleting data. The driver handles the conversion of Java data types to their corresponding JDBC types before sending them to the database. For more information on data type conversions, see [Supported Data Types](#supported-data-types). -KaiwuDB JDBC driver is the official Java connector for KWDB. Built on the PgJDBC extension, it complies with JDBC 4.0, 4.1, and 4.2 specifications. Java developers can use this driver to communicate with KWDB and access tabular data. The operation process is as follows: +Built on the PgJDBC extension, KaiwuDB JDBC driver complies with JDBC 4.0, 4.1, and 4.2 specifications. Java developers can use this driver to communicate with KWDB and access tabular data. The operation process is as follows: 1. Connect to the data source and establish a database connection 2. Create query or update commands @@ -273,28 +273,29 @@ The following table lists the mapping between SQL and JDBC data types: | SQL | JDBC | Relational Engine | Time Series Engine | |-----------|-------------------------------------|---------------------------|---------------------------| -| BIT | java.lang.Boolean | Yes | No | -| BOOL | java.lang.Boolean | Yes | Yes | -| TIMESTAMP | java.sql.Timestamp | Yes | Yes | -| DATE | java.sql.Date | Yes | No | -| TIME | java.sql.Time | Yes | No | -| NUMERIC | Java.math.BigDecimal | Yes | No | -| INTEGER | java.lang.Integer | Yes | Yes | -| BIGINT | java.lang.Long | Yes | Yes | -| FLOAT | java.lang.Float | Yes | Yes | -| DOUBLE | java.lang.Double | Yes | Yes | -| SMALLINT | java.lang.Short | Yes | Yes | -| TINYINT | java.lang.Byte | Yes | No | -| REAL | java.lang.Float | Yes | Yes | -| BYTES | [B | Yes | Yes | -| VARBYTES | [B | Yes | Yes | -| CHAR | java.lang.String | Yes | Yes | -| NCHAR | java.lang.String | Yes | Yes | -| VARCHAR | java.lang.String | Yes | Yes | -| NVARCHAR | java.lang.String | Yes | Yes | -| ARRAY | java.sql.Array | Yes | No | -| BLOB | java.sql.Blob | Yes | No | -| CLOB | java.sql.Clob | No | No | +| BIT | java.lang.Boolean | Yes | No | +| BOOL | java.lang.Boolean | Yes | Yes | +| SMALLINT | java.lang.Integer | Yes | Yes | +| INTEGER | java.lang.Integer | Yes | Yes | +| BIGINT | java.lang.Long | Yes | Yes | +| REAL | java.lang.Float | Yes | Yes | +| DOUBLE | java.lang.Double | Yes | Yes | +| DECIMAL | java.math.BigDecimal | Yes | No | +| DATE | java.sql.Date | Yes | No | +| TIME | java.sql.Time | Yes | No | +| TIMESTAMP | java.sql.Timestamp | Yes | Yes | +| CHAR | java.lang.String | Yes | Yes | +| VARCHAR | java.lang.String | Yes | Yes | +| NCHAR | java.lang.String | Yes | Yes | +| NVARCHAR | java.lang.String | Yes | Yes | +| BYTES | byte[] ([B) | Yes | No | +| VARBYTES | byte[] ([B) | Yes | Yes | +| BLOB | byte[] ([B) | Yes | No | +| CLOB | java.lang.String | Yes | No | +| JSON | com.kaiwudb.util.KWobject | Yes | No | +| GEOMETRY | java.lang.String | No | Yes | +| ARRAY | java.sql.Array | Yes | No | + ### Exception Handling -- Gitee From 3c42474601b1a5ac895c3c4f10ce4baa527600ff Mon Sep 17 00:00:00 2001 From: Rui Date: Fri, 9 Jan 2026 17:36:07 +0800 Subject: [PATCH 2/2] commit-message: fix comments on test review --- development/connect-kaiwudb/java/connect-jdbc.md | 2 +- en/development/connect-kaiwudb/java/connect-jdbc.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/development/connect-kaiwudb/java/connect-jdbc.md b/development/connect-kaiwudb/java/connect-jdbc.md index 7d843635..8b4add95 100644 --- a/development/connect-kaiwudb/java/connect-jdbc.md +++ b/development/connect-kaiwudb/java/connect-jdbc.md @@ -272,7 +272,7 @@ while(resultSet.next()){ | SQL | JDBC | 关系引擎支持 | 时序引擎支持 | |-----------|----------------------|-------------|-------------| -| BIT | java.lang.Boolean | 是 | 否 | +| BIT | java.lang.String | 是 | 否 | | BOOL | java.lang.Boolean | 是 | 是 | | SMALLINT | java.lang.Integer | 是 | 是 | | INTEGER | java.lang.Integer | 是 | 是 | diff --git a/en/development/connect-kaiwudb/java/connect-jdbc.md b/en/development/connect-kaiwudb/java/connect-jdbc.md index bb60e4ba..751b78e6 100644 --- a/en/development/connect-kaiwudb/java/connect-jdbc.md +++ b/en/development/connect-kaiwudb/java/connect-jdbc.md @@ -273,7 +273,7 @@ The following table lists the mapping between SQL and JDBC data types: | SQL | JDBC | Relational Engine | Time Series Engine | |-----------|-------------------------------------|---------------------------|---------------------------| -| BIT | java.lang.Boolean | Yes | No | +| BIT | java.lang.String | Yes | No | | BOOL | java.lang.Boolean | Yes | Yes | | SMALLINT | java.lang.Integer | Yes | Yes | | INTEGER | java.lang.Integer | Yes | Yes | -- Gitee