25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
feat: add KWDB support
Xudong Guo9b15843e1a96
diff --git a/README.md b/README.mdindex e09ef55bc8..fe70bbbd7d 100644--- a/README.md+++ b/README.md@@ -33,6 +33,7 @@<img src="https://img.shields.io/badge/OceanBase-006AFF?logoColor=white" /><img src="https://img.shields.io/badge/openGauss-2B7BD9?logoColor=white" /><img src="https://img.shields.io/badge/GaussDB-E60012?logoColor=white" />+ <img src="https://img.shields.io/badge/KWDB-1c60e0?logoColor=white" /><img src="https://img.shields.io/badge/KingBase-003B8E?logoColor=white" /><img src="https://img.shields.io/badge/TDengine-2F6FFF?logoColor=white" /><img src="https://img.shields.io/badge/CockroachDB-6933FF?logoColor=white" />@@ -85,7 +86,7 @@### 40+ Databases, One Tool-MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, ClickHouse, SQL Server, Oracle, Elasticsearch, MariaDB, TiDB, OceanBase, openGauss, GaussDB, KingBase, Vastbase, GoldenDB, Doris, SelectDB, StarRocks, Redshift, DM, TDengine, XuguDB, CockroachDB, Access, HighGo, and more. Agent/JDBC-oriented profiles extend DBX to H2, Snowflake, Trino, Hive, DB2, Informix, Neo4j, Cassandra, BigQuery, Kylin, SunDB, and custom JDBC connections. All in a single ~15 MB app. No bundled Chromium.+MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, ClickHouse, SQL Server, Oracle, Elasticsearch, MariaDB, TiDB, OceanBase, openGauss, GaussDB, KWDB, KingBase, Vastbase, GoldenDB, Doris, SelectDB, StarRocks, Redshift, DM, TDengine, XuguDB, CockroachDB, Access, HighGo, and more. Agent/JDBC-oriented profiles extend DBX to H2, Snowflake, Trino, Hive, DB2, Informix, Neo4j, Cassandra, BigQuery, Kylin, SunDB, and custom JDBC connections. All in a single ~15 MB app. No bundled Chromium.### Query Editor@@ -293,7 +294,7 @@ DBX is 15 MB with no runtime dependencies (no Java, no Python). It includes AI a<details><summary><strong>What databases are supported?</strong></summary>-MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, ClickHouse, SQL Server, Oracle, Elasticsearch, MariaDB, TiDB, OceanBase, openGauss, GaussDB, KingBase, Vastbase, GoldenDB, Doris, SelectDB, StarRocks, Redshift, DM, TDengine, XuguDB, CockroachDB, Access, HighGo, and more. JDBC-oriented profiles extend support to H2, Snowflake, Trino, Hive, DB2, Informix, Neo4j, Cassandra, BigQuery, Kylin, SunDB, and custom JDBC connections.+MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, ClickHouse, SQL Server, Oracle, Elasticsearch, MariaDB, TiDB, OceanBase, openGauss, GaussDB, KWDB, KingBase, Vastbase, GoldenDB, Doris, SelectDB, StarRocks, Redshift, DM, TDengine, XuguDB, CockroachDB, Access, HighGo, and more. JDBC-oriented profiles extend support to H2, Snowflake, Trino, Hive, DB2, Informix, Neo4j, Cassandra, BigQuery, Kylin, SunDB, and custom JDBC connections.</details><details>diff --git a/README.zh-CN.md b/README.zh-CN.mdindex 56dcfc0074..d8245a7410 100644--- a/README.zh-CN.md+++ b/README.zh-CN.md@@ -33,6 +33,7 @@<img src="https://img.shields.io/badge/OceanBase-006AFF?logoColor=white" /><img src="https://img.shields.io/badge/openGauss-2B7BD9?logoColor=white" /><img src="https://img.shields.io/badge/GaussDB-E60012?logoColor=white" />+ <img src="https://img.shields.io/badge/KWDB-1c60e0?logoColor=white" /><img src="https://img.shields.io/badge/KingBase-003B8E?logoColor=white" /><img src="https://img.shields.io/badge/TDengine-2F6FFF?logoColor=white" /><img src="https://img.shields.io/badge/CockroachDB-6933FF?logoColor=white" />@@ -85,7 +86,7 @@### 40+ 种数据库,一个工具搞定-MySQL、PostgreSQL、SQLite、Redis、MongoDB、DuckDB、ClickHouse、SQL Server、Oracle、Elasticsearch、MariaDB、TiDB、OceanBase、openGauss、GaussDB、KingBase、Vastbase、GoldenDB、Doris、SelectDB、StarRocks、Redshift、DM、TDengine、虚谷 XuguDB、CockroachDB、Access、HighGo 等数据库都能直接连接。Agent/JDBC 方向的配置还可扩展到 H2、Snowflake、Trino、Hive、DB2、Informix、Neo4j、Cassandra、BigQuery、Kylin、SunDB 和自定义 JDBC。全部装进约 15 MB 的应用里,不内嵌 Chromium。+MySQL、PostgreSQL、SQLite、Redis、MongoDB、DuckDB、ClickHouse、SQL Server、Oracle、Elasticsearch、MariaDB、TiDB、OceanBase、openGauss、GaussDB、KWDB、KingBase、Vastbase、GoldenDB、Doris、SelectDB、StarRocks、Redshift、DM、TDengine、虚谷 XuguDB、CockroachDB、Access、HighGo 等数据库都能直接连接。Agent/JDBC 方向的配置还可扩展到 H2、Snowflake、Trino、Hive、DB2、Informix、Neo4j、Cassandra、BigQuery、Kylin、SunDB 和自定义 JDBC。全部装进约 15 MB 的应用里,不内嵌 Chromium。### 查询编辑器@@ -293,7 +294,7 @@ DBX 仅 15 MB,无需运行时依赖(无需 Java、无需 Python)。AI 和<details><summary><strong>支持哪些数据库?</strong></summary>-MySQL、PostgreSQL、SQLite、Redis、MongoDB、DuckDB、ClickHouse、SQL Server、Oracle、Elasticsearch、MariaDB、TiDB、OceanBase、openGauss、GaussDB、KingBase、Vastbase、GoldenDB、Doris、SelectDB、StarRocks、Redshift、DM、TDengine、虚谷 XuguDB、CockroachDB、Access、HighGo 等。JDBC 方向配置可扩展到 H2、Snowflake、Trino、Hive、DB2、Informix、Neo4j、Cassandra、BigQuery、Kylin、SunDB 及自定义 JDBC 连接。+MySQL、PostgreSQL、SQLite、Redis、MongoDB、DuckDB、ClickHouse、SQL Server、Oracle、Elasticsearch、MariaDB、TiDB、OceanBase、openGauss、GaussDB、KWDB、KingBase、Vastbase、GoldenDB、Doris、SelectDB、StarRocks、Redshift、DM、TDengine、虚谷 XuguDB、CockroachDB、Access、HighGo 等。JDBC 方向配置可扩展到 H2、Snowflake、Trino、Hive、DB2、Informix、Neo4j、Cassandra、BigQuery、Kylin、SunDB 及自定义 JDBC 连接。</details><details>diff --git a/apps/desktop/public/icons/database/kwdb.svg b/apps/desktop/public/icons/database/kwdb.svgnew file mode 100644index 0000000000..487775987f--- /dev/null+++ b/apps/desktop/public/icons/database/kwdb.svg@@ -0,0 +1 @@+<svg id="图层_1" data-name="图层 1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 371.33 401.04"><defs><style>.cls-1{fill:none;}.cls-2{clip-path:url(#clip-path);}.cls-3{fill:#002db2;}.cls-4{fill:#012eb2;}.cls-5{fill:#012fb2;}.cls-6{fill:#0230b2;}.cls-7{fill:#0231b3;}.cls-8{fill:#0332b3;}.cls-9{fill:#0433b3;}.cls-10{fill:#0434b3;}.cls-11{fill:#0535b3;}.cls-12{fill:#0636b3;}.cls-13{fill:#0637b3;}.cls-14{fill:#0738b3;}.cls-15{fill:#0739b4;}.cls-16{fill:#083ab4;}.cls-17{fill:#093bb4;}.cls-18{fill:#093cb4;}.cls-19{fill:#0a3db4;}.cls-20{fill:#0b3eb4;}.cls-21{fill:#0b3fb4;}.cls-22{fill:#0c40b5;}.cls-23{fill:#0c41b5;}.cls-24{fill:#0d42b5;}.cls-25{fill:#0e43b5;}.cls-26{fill:#0e44b5;}.cls-27{fill:#0f45b5;}.cls-28{fill:#1046b5;}.cls-29{fill:#1047b5;}.cls-30{fill:#1148b6;}.cls-31{fill:#1149b6;}.cls-32{fill:#124ab6;}.cls-33{fill:#134bb6;}.cls-34{fill:#134cb6;}.cls-35{fill:#144db6;}.cls-36{fill:#144eb6;}.cls-37{fill:#154fb7;}.cls-38{fill:#1650b7;}.cls-39{fill:#1651b7;}.cls-40{fill:#1752b7;}.cls-41{fill:#1853b7;}.cls-42{fill:#1854b7;}.cls-43{fill:#1955b7;}.cls-44{fill:#1956b7;}.cls-45{fill:#1a57b8;}.cls-46{fill:#1b58b8;}.cls-47{fill:#1b59b8;}.cls-48{fill:#1c5ab8;}.cls-49{fill:#1d5bb8;}.cls-50{fill:#1d5cb8;}.cls-51{fill:#1e5db8;}.cls-52{fill:#1e5eb8;}.cls-53{fill:#1f5fb9;}.cls-54{fill:#2060b9;}.cls-55{fill:#2061b9;}.cls-56{fill:#2162b9;}.cls-57{fill:#2263b9;}.cls-58{fill:#2264b9;}.cls-59{fill:#2365b9;}.cls-60{fill:#2366ba;}.cls-61{fill:#2467ba;}.cls-62{fill:#2568ba;}.cls-63{fill:#2569ba;}.cls-64{fill:#266aba;}.cls-65{fill:#266bba;}.cls-66{fill:#276cba;}.cls-67{fill:#286dba;}.cls-68{fill:#286ebb;}.cls-69{fill:#296fbb;}.cls-70{fill:#2a70bb;}.cls-71{fill:#2a71bb;}.cls-72{fill:#2b72bb;}.cls-73{fill:#2b73bb;}.cls-74{fill:#2c74bb;}.cls-75{fill:#2d75bc;}.cls-76{fill:#2d76bc;}.cls-77{fill:#2e77bc;}.cls-78{fill:#2f78bc;}.cls-79{fill:#2f79bc;}.cls-80{fill:#307abc;}.cls-81{fill:#307bbc;}.cls-82{fill:#317cbc;}.cls-83{fill:#327dbd;}.cls-84{fill:#327ebd;}.cls-85{fill:#337fbd;}.cls-86{fill:#3380bd;}.cls-87{fill:#3482bd;}.cls-88{fill:#3583bd;}.cls-89{fill:#3584bd;}.cls-90{fill:#3685be;}.cls-91{fill:#3786be;}.cls-92{fill:#3787be;}.cls-93{fill:#3888be;}.cls-94{fill:#3889be;}.cls-95{fill:#398abe;}.cls-96{fill:#3a8bbe;}.cls-97{fill:#3a8cbe;}.cls-98{fill:#3b8dbf;}.cls-99{fill:#3c8ebf;}.cls-100{fill:#3c8fbf;}.cls-101{fill:#3d90bf;}.cls-102{fill:#3d91bf;}.cls-103{fill:#3e92bf;}.cls-104{fill:#3f93bf;}.cls-105{fill:#3f94c0;}.cls-106{fill:#4095c0;}.cls-107{fill:#4196c0;}.cls-108{fill:#4197c0;}.cls-109{fill:#4298c0;}.cls-110{fill:#4299c0;}.cls-111{fill:#439ac0;}.cls-112{fill:#449bc0;}.cls-113{fill:#449cc1;}.cls-114{fill:#459dc1;}.cls-115{fill:#459ec1;}.cls-116{fill:#469fc1;}.cls-117{fill:#47a0c1;}.cls-118{fill:#47a1c1;}.cls-119{fill:#48a2c1;}.cls-120{fill:#49a3c2;}.cls-121{fill:#49a4c2;}.cls-122{fill:#4aa5c2;}.cls-123{fill:#4aa6c2;}.cls-124{fill:#4ba7c2;}.cls-125{fill:#4ca8c2;}.cls-126{fill:#4ca9c2;}.cls-127{fill:#4daac2;}.cls-128{fill:#4eabc3;}.cls-129{fill:#4eacc3;}.cls-130{fill:#4fadc3;}.cls-131{fill:#4faec3;}.cls-132{fill:#50afc3;}.cls-133{fill:#51b0c3;}.cls-134{fill:#51b1c3;}.cls-135{fill:#52b2c3;}.cls-136{fill:#53b3c4;}.cls-137{fill:#53b4c4;}.cls-138{fill:#54b5c4;}.cls-139{fill:#54b6c4;}.cls-140{fill:#55b7c4;}.cls-141{fill:#56b8c4;}.cls-142{fill:#56b9c4;}.cls-143{fill:#57bac5;}.cls-144{fill:#57bbc5;}.cls-145{fill:#58bcc5;}.cls-146{fill:#59bdc5;}.cls-147{fill:#59bec5;}.cls-148{fill:#5abfc5;}.cls-149{fill:#5bc0c5;}.cls-150{fill:#5bc1c5;}.cls-151{fill:#5cc2c6;}.cls-152{fill:#5cc3c6;}.cls-153{fill:#5dc4c6;}.cls-154{fill:#5ec5c6;}.cls-155{fill:#5ec6c6;}.cls-156{fill:#5fc7c6;}.cls-157{fill:#60c8c6;}.cls-158{fill:#60c9c7;}.cls-159{fill:#61cac7;}.cls-160{fill:#61cbc7;}.cls-161{fill:#62ccc7;}.cls-162{fill:#63cdc7;}.cls-163{fill:#63cec7;}.cls-164{fill:#64cfc7;}.cls-165{fill:#65d0c7;}.cls-166{fill:#65d1c8;}.cls-167{fill:#66d2c8;}.cls-168{fill:#66d3c8;}.cls-169{fill:#67d4c8;}.cls-170{clip-path:url(#clip-path-2);}.cls-171{fill:#66d3c9;}.cls-172{fill:#66d2c9;}.cls-173{fill:#65d1ca;}.cls-174{fill:#64d0cb;}.cls-175{fill:#64cfcb;}.cls-176{fill:#63cecc;}.cls-177{fill:#62cdcd;}.cls-178{fill:#62cccd;}.cls-179{fill:#61cbce;}.cls-180{fill:#60cacf;}.cls-181{fill:#60c9cf;}.cls-182{fill:#5fc8d0;}.cls-183{fill:#5ec7d1;}.cls-184{fill:#5ec6d1;}.cls-185{fill:#5dc5d2;}.cls-186{fill:#5cc4d3;}.cls-187{fill:#5cc3d3;}.cls-188{fill:#5bc2d4;}.cls-189{fill:#5ac1d5;}.cls-190{fill:#59bfd6;}.cls-191{fill:#59bed6;}.cls-192{fill:#58bdd7;}.cls-193{fill:#57bcd8;}.cls-194{fill:#57bbd8;}.cls-195{fill:#56bad9;}.cls-196{fill:#55b9da;}.cls-197{fill:#55b8da;}.cls-198{fill:#54b7db;}.cls-199{fill:#53b6dc;}.cls-200{fill:#53b5dc;}.cls-201{fill:#52b4dd;}.cls-202{fill:#51b3de;}.cls-203{fill:#51b2de;}.cls-204{fill:#50b1df;}.cls-205{fill:#4fb0e0;}.cls-206{fill:#4fafe0;}.cls-207{fill:#4eaee1;}.cls-208{fill:#4dade2;}.cls-209{fill:#4dace2;}.cls-210{fill:#4cabe3;}.cls-211{fill:#4baae4;}.cls-212{fill:#4ba9e4;}.cls-213{fill:#4aa8e5;}.cls-214{fill:#49a7e6;}.cls-215{fill:#48a6e7;}.cls-216{fill:#48a5e7;}.cls-217{fill:#47a4e8;}.cls-218{fill:#46a3e9;}.cls-219{fill:#46a2e9;}.cls-220{fill:#45a1ea;}.cls-221{fill:#44a0eb;}.cls-222{fill:#449feb;}.cls-223{fill:#439eec;}.cls-224{fill:#429ded;}.cls-225{fill:#419cee;}.cls-226{fill:#419bee;}.cls-227{fill:#409aef;}.cls-228{fill:#3f99f0;}.cls-229{fill:#3f98f0;}.cls-230{fill:#3e96f1;}.cls-231{fill:#3d95f2;}.cls-232{fill:#3d94f2;}.cls-233{fill:#3c93f3;}.cls-234{fill:#3b92f4;}.cls-235{fill:#3a91f5;}.cls-236{fill:#3a90f5;}.cls-237{fill:#398ff6;}.cls-238{fill:#388ef7;}.cls-239{fill:#388df7;}.cls-240{fill:#378cf8;}.cls-241{fill:#368bf9;}.cls-242{fill:#368af9;}.cls-243{fill:#3589fa;}.cls-244{fill:#3488fb;}.cls-245{fill:#3387fc;}.cls-246{fill:#3386fc;}.cls-247{fill:#3285fd;}.cls-248{fill:#3184fe;}.cls-249{fill:#3183fe;}.cls-250{fill:#3082ff;}.cls-251{clip-path:url(#clip-path-3);}.cls-252{fill:#012eb3;}.cls-253{fill:#012fb4;}.cls-254{fill:#0230b5;}.cls-255{fill:#0231b6;}.cls-256{fill:#0332b7;}.cls-257{fill:#0333b8;}.cls-258{fill:#0434b8;}.cls-259{fill:#0535b9;}.cls-260{fill:#0536ba;}.cls-261{fill:#0637bb;}.cls-262{fill:#0638bc;}.cls-263{fill:#0739bd;}.cls-264{fill:#073abe;}.cls-265{fill:#083bbf;}.cls-266{fill:#093cc0;}.cls-267{fill:#093dc1;}.cls-268{fill:#0a3ec2;}.cls-269{fill:#0a3fc3;}.cls-270{fill:#0b40c4;}.cls-271{fill:#0c42c5;}.cls-272{fill:#0c43c5;}.cls-273{fill:#0d44c6;}.cls-274{fill:#0d45c7;}.cls-275{fill:#0e46c8;}.cls-276{fill:#0e47c9;}.cls-277{fill:#0f48ca;}.cls-278{fill:#1049cb;}.cls-279{fill:#104acc;}.cls-280{fill:#114bcd;}.cls-281{fill:#114cce;}.cls-282{fill:#124dcf;}.cls-283{fill:#124ed0;}.cls-284{fill:#134fd1;}.cls-285{fill:#1450d1;}.cls-286{fill:#1451d2;}.cls-287{fill:#1552d3;}.cls-288{fill:#1553d4;}.cls-289{fill:#1654d5;}.cls-290{fill:#1655d6;}.cls-291{fill:#1756d7;}.cls-292{clip-path:url(#clip-path-4);}.cls-293{fill:#0331b3;}.cls-294{fill:#0738b4;}.cls-295{fill:#0839b4;}.cls-296{fill:#0b3fb5;}.cls-297{fill:#0d41b5;}.cls-298{fill:#0f44b5;}.cls-299{fill:#1047b6;}.cls-300{fill:#1249b6;}.cls-301{fill:#144cb6;}.cls-302{fill:#154eb7;}.cls-303{fill:#164fb7;}.cls-304{fill:#1751b7;}.cls-305{fill:#1954b7;}.cls-306{fill:#1956b8;}.cls-307{fill:#1c5bb8;}.cls-308{fill:#1e5db9;}.cls-309{fill:#1e5eb9;}.cls-310{fill:#2264ba;}.cls-311{fill:#2365ba;}.cls-312{fill:#276bba;}.cls-313{fill:#276cbb;}.cls-314{fill:#286dbb;}.cls-315{fill:#296ebb;}.cls-316{fill:#2c73bc;}.cls-317{fill:#2c74bc;}.cls-318{fill:#2e76bc;}.cls-319{fill:#307abd;}.cls-320{fill:#317bbd;}.cls-321{fill:#317cbd;}.cls-322{clip-path:url(#clip-path-5);}.cls-323{fill:#1857d8;}.cls-324{fill:#1858d9;}.cls-325{fill:#1959da;}.cls-326{fill:#195adb;}.cls-327{fill:#1a5bdc;}.cls-328{fill:#1a5cdd;}.cls-329{fill:#1b5dde;}.cls-330{fill:#1c5ede;}.cls-331{fill:#1c5fdf;}.cls-332{fill:#1d60e0;}.cls-333{fill:#1d61e1;}.cls-334{fill:#1e62e2;}.cls-335{fill:#1f63e3;}.cls-336{fill:#1f64e4;}.cls-337{fill:#2065e5;}.cls-338{fill:#2066e6;}.cls-339{fill:#2167e7;}.cls-340{fill:#2168e8;}.cls-341{fill:#2269e9;}.cls-342{fill:#236aea;}.cls-343{fill:#236beb;}.cls-344{fill:#246deb;}.cls-345{fill:#246eec;}.cls-346{fill:#256fed;}.cls-347{fill:#2670ee;}.cls-348{fill:#2671ef;}.cls-349{fill:#2772f0;}.cls-350{fill:#2773f1;}.cls-351{fill:#2874f2;}.cls-352{fill:#2875f3;}.cls-353{fill:#2976f4;}.cls-354{fill:#2a77f5;}.cls-355{fill:#2a78f6;}.cls-356{fill:#2b79f7;}.cls-357{fill:#2b7af8;}.cls-358{fill:#2c7bf8;}.cls-359{fill:#2d7cf9;}.cls-360{fill:#2d7dfa;}.cls-361{fill:#2e7efb;}.cls-362{fill:#2e7ffc;}.cls-363{fill:#2f80fd;}.cls-364{fill:#2f81fe;}.cls-365{clip-path:url(#clip-path-6);}.cls-366{fill:#49a6e7;}.cls-367{fill:#429cee;}.cls-368{fill:#3e97f1;}.cls-369{fill:#3b91f5;}.cls-370{fill:#3487fc;}</style><clipPath id="clip-path"><path class="cls-1" d="M280.66,283.79,31,304.28c-19.95,1.64-31-12.78-24.78-32.2l37-114.6c6.26-19.41,27.51-36.48,47.45-38.12L340.28,98.87c20-1.64,31.05,12.78,24.78,32.2L328.12,245.66C321.85,265.08,300.61,282.15,280.66,283.79Z"/></clipPath><clipPath id="clip-path-2"><path class="cls-1" d="M152.8,327,16.52,125.8C5.63,109.72,13,92.46,32.87,87.25L150.44,56.47c19.92-5.21,44.9,3.59,55.79,19.67L342.51,277.35c10.89,16.07,3.56,33.34-16.36,38.55L208.59,346.68C188.67,351.89,163.69,343.09,152.8,327Z"/></clipPath><clipPath id="clip-path-3"><path class="cls-1" d="M307.73,164.43,199,381.77c-8.69,17.37-27.24,19.27-41.44,4.25L73.78,297.37c-14.2-15-18.66-41.28-10-58.65L172.52,21.38C181.21,4,199.76,2.11,214,17.13l83.79,88.65C312,120.81,316.42,147.06,307.73,164.43Z"/></clipPath><clipPath id="clip-path-4"><path class="cls-1" d="M43.21,158.33,6.26,272.93C0,292.35,11.09,306.76,31,305.13l100.76-8.27h0L76.21,214.78l113.65-12.36,38-93.48h0L90.66,120.21C70.72,121.84,49.47,138.91,43.21,158.33Z"/></clipPath><clipPath id="clip-path-5"><path class="cls-1" d="M215,15c-14.2-15-32.76-13.12-41.44,4.25l-48.66,97.28,102.94-8.45-38,93.47,56.78,85h0l62.15-124.26c8.69-17.37,4.22-43.62-10-58.65Z"/></clipPath><clipPath id="clip-path-6"><path class="cls-1" d="M290,199.85l-43.38,86.73-56.78-85L76.74,214.72,152.8,327c10.89,16.08,35.87,24.88,55.79,19.67L326.15,315.9c19.92-5.21,27.25-22.48,16.36-38.55Z"/></clipPath></defs><g class="cls-2"><polygon class="cls-3" points="139.5 97.23 33.17 305.92 7.09 305.92 0 302.31 0 97.23 139.5 97.23"/><polygon class="cls-3" points="140.69 97.23 34.36 305.92 33.17 305.92 139.5 97.23 140.69 97.23"/><polygon class="cls-4" points="141.88 97.23 35.55 305.92 34.36 305.92 140.69 97.23 141.88 97.23"/><polygon class="cls-5" points="143.07 97.23 36.74 305.92 35.55 305.92 141.88 97.23 143.07 97.23"/><polygon class="cls-6" points="144.26 97.23 37.93 305.92 36.74 305.92 143.07 97.23 144.26 97.23"/><polygon class="cls-7" points="145.45 97.23 39.12 305.92 37.93 305.92 144.26 97.23 145.45 97.23"/><polygon class="cls-8" points="146.64 97.23 40.31 305.92 39.12 305.92 145.45 97.23 146.64 97.23"/><polygon class="cls-9" points="147.83 97.23 41.5 305.92 40.31 305.92 146.64 97.23 147.83 97.23"/><polygon class="cls-10" points="149.02 97.23 42.69 305.92 41.5 305.92 147.83 97.23 149.02 97.23"/><polygon class="cls-11" points="150.21 97.23 43.88 305.92 42.69 305.92 149.02 97.23 150.21 97.23"/><polygon class="cls-12" points="151.4 97.23 45.07 305.92 43.88 305.92 150.21 97.23 151.4 97.23"/><polygon class="cls-13" points="152.59 97.23 46.26 305.92 45.07 305.92 151.4 97.23 152.59 97.23"/><polygon class="cls-14" points="153.78 97.23 47.45 305.92 46.26 305.92 152.59 97.23 153.78 97.23"/><polygon class="cls-15" points="154.97 97.23 48.64 305.92 47.45 305.92 153.78 97.23 154.97 97.23"/><polygon class="cls-16" points="156.15 97.23 49.83 305.92 48.64 305.92 154.97 97.23 156.15 97.23"/><polygon class="cls-17" points="157.34 97.23 51.02 305.92 49.83 305.92 156.15 97.23 157.34 97.23"/><polygon class="cls-18" points="158.53 97.23 52.2 305.92 51.02 305.92 157.34 97.23 158.53 97.23"/><polygon class="cls-19" points="159.72 97.23 53.39 305.92 52.2 305.92 158.53 97.23 159.72 97.23"/><polygon class="cls-20" points="160.91 97.23 54.58 305.92 53.39 305.92 159.72 97.23 160.91 97.23"/><polygon class="cls-21" points="162.1 97.23 55.77 305.92 54.58 305.92 160.91 97.23 162.1 97.23"/><polygon class="cls-22" points="163.29 97.23 56.96 305.92 55.77 305.92 162.1 97.23 163.29 97.23"/><polygon class="cls-23" points="164.48 97.23 58.15 305.92 56.96 305.92 163.29 97.23 164.48 97.23"/><polygon class="cls-24" points="165.67 97.23 59.34 305.92 58.15 305.92 164.48 97.23 165.67 97.23"/><polygon class="cls-25" points="166.86 97.23 60.53 305.92 59.34 305.92 165.67 97.23 166.86 97.23"/><polygon class="cls-26" points="168.05 97.23 61.72 305.92 60.53 305.92 166.86 97.23 168.05 97.23"/><polygon class="cls-27" points="169.24 97.23 62.91 305.92 61.72 305.92 168.05 97.23 169.24 97.23"/><polygon class="cls-28" points="170.43 97.23 64.1 305.92 62.91 305.92 169.24 97.23 170.43 97.23"/><polygon class="cls-29" points="171.62 97.23 65.29 305.92 64.1 305.92 170.43 97.23 171.62 97.23"/><polygon class="cls-30" points="172.81 97.23 66.48 305.92 65.29 305.92 171.62 97.23 172.81 97.23"/><polygon class="cls-31" points="174 97.23 67.67 305.92 66.48 305.92 172.81 97.23 174 97.23"/><polygon class="cls-32" points="175.19 97.23 68.86 305.92 67.67 305.92 174 97.23 175.19 97.23"/><polygon class="cls-33" points="176.38 97.23 70.05 305.92 68.86 305.92 175.19 97.23 176.38 97.23"/><polygon class="cls-34" points="177.57 97.23 71.24 305.92 70.05 305.92 176.38 97.23 177.57 97.23"/><polygon class="cls-35" points="178.76 97.23 72.43 305.92 71.24 305.92 177.57 97.23 178.76 97.23"/><polygon class="cls-36" points="179.94 97.23 73.62 305.92 72.43 305.92 178.76 97.23 179.94 97.23"/><polygon class="cls-37" points="181.13 97.23 74.81 305.92 73.62 305.92 179.94 97.23 181.13 97.23"/><polygon class="cls-38" points="182.32 97.23 76 305.92 74.81 305.92 181.13 97.23 182.32 97.23"/><polygon class="cls-39" points="183.51 97.23 77.19 305.92 76 305.92 182.32 97.23 183.51 97.23"/><polygon class="cls-40" points="184.7 97.23 78.37 305.92 77.19 305.92 183.51 97.23 184.7 97.23"/><polygon class="cls-41" points="185.89 97.23 79.56 305.92 78.37 305.92 184.7 97.23 185.89 97.23"/><polygon class="cls-42" points="187.08 97.23 80.75 305.92 79.56 305.92 185.89 97.23 187.08 97.23"/><polygon class="cls-43" points="188.27 97.23 81.94 305.92 80.75 305.92 187.08 97.23 188.27 97.23"/><polygon class="cls-44" points="189.46 97.23 83.13 305.92 81.94 305.92 188.27 97.23 189.46 97.23"/><polygon class="cls-45" points="190.65 97.23 84.32 305.92 83.13 305.92 189.46 97.23 190.65 97.23"/><polygon class="cls-46" points="191.84 97.23 85.51 305.92 84.32 305.92 190.65 97.23 191.84 97.23"/><polygon class="cls-47" points="193.03 97.23 86.7 305.92 85.51 305.92 191.84 97.23 193.03 97.23"/><polygon class="cls-48" points="194.22 97.23 87.89 305.92 86.7 305.92 193.03 97.23 194.22 97.23"/><polygon class="cls-49" points="195.41 97.23 89.08 305.92 87.89 305.92 194.22 97.23 195.41 97.23"/><polygon class="cls-50" points="196.6 97.23 90.27 305.92 89.08 305.92 195.41 97.23 196.6 97.23"/><polygon class="cls-51" points="197.79 97.23 91.46 305.92 90.27 305.92 196.6 97.23 197.79 97.23"/><polygon class="cls-52" points="198.98 97.23 92.65 305.92 91.46 305.92 197.79 97.23 198.98 97.23"/><polygon class="cls-53" points="200.17 97.23 93.84 305.92 92.65 305.92 198.98 97.23 200.17 97.23"/><polygon class="cls-54" points="201.36 97.23 95.03 305.92 93.84 305.92 200.17 97.23 201.36 97.23"/><polygon class="cls-55" points="202.55 97.23 96.22 305.92 95.03 305.92 201.36 97.23 202.55 97.23"/><polygon class="cls-56" points="203.74 97.23 97.41 305.92 96.22 305.92 202.55 97.23 203.74 97.23"/><polygon class="cls-57" points="204.93 97.23 98.6 305.92 97.41 305.92 203.74 97.23 204.93 97.23"/><polygon class="cls-58" points="206.12 97.23 99.79 305.92 98.6 305.92 204.93 97.23 206.12 97.23"/><polygon class="cls-59" points="207.31 97.23 100.97 305.92 99.79 305.92 206.12 97.23 207.31 97.23"/><polygon class="cls-60" points="208.49 97.23 102.17 305.92 100.97 305.92 207.31 97.23 208.49 97.23"/><polygon class="cls-61" points="209.68 97.23 103.35 305.92 102.17 305.92 208.49 97.23 209.68 97.23"/><polygon class="cls-62" points="210.87 97.23 104.54 305.92 103.35 305.92 209.68 97.23 210.87 97.23"/><polygon class="cls-63" points="212.06 97.23 105.73 305.92 104.54 305.92 210.87 97.23 212.06 97.23"/><polygon class="cls-64" points="213.25 97.23 106.92 305.92 105.73 305.92 212.06 97.23 213.25 97.23"/><polygon class="cls-65" points="214.44 97.23 108.11 305.92 106.92 305.92 213.25 97.23 214.44 97.23"/><polygon class="cls-66" points="215.63 97.23 109.3 305.92 108.11 305.92 214.44 97.23 215.63 97.23"/><polygon class="cls-67" points="216.82 97.23 110.49 305.92 109.3 305.92 215.63 97.23 216.82 97.23"/><polygon class="cls-68" points="218.01 97.23 111.68 305.92 110.49 305.92 216.82 97.23 218.01 97.23"/><polygon class="cls-69" points="219.2 97.23 112.87 305.92 111.68 305.92 218.01 97.23 219.2 97.23"/><polygon class="cls-70" points="220.39 97.23 114.06 305.92 112.87 305.92 219.2 97.23 220.39 97.23"/><polygon class="cls-71" points="221.58 97.23 115.25 305.92 114.06 305.92 220.39 97.23 221.58 97.23"/><polygon class="cls-72" points="222.77 97.23 116.44 305.92 115.25 305.92 221.58 97.23 222.77 97.23"/><polygon class="cls-73" points="223.96 97.23 117.63 305.92 116.44 305.92 222.77 97.23 223.96 97.23"/><polygon class="cls-74" points="225.15 97.23 118.82 305.92 117.63 305.92 223.96 97.23 225.15 97.23"/><polygon class="cls-75" points="226.34 97.23 120.01 305.92 118.82 305.92 225.15 97.23 226.34 97.23"/><polygon class="cls-76" points="227.53 97.23 121.2 305.92 120.01 305.92 226.34 97.23 227.53 97.23"/><polygon class="cls-77" points="228.72 97.23 122.39 305.92 121.2 305.92 227.53 97.23 228.72 97.23"/><polygon class="cls-78" points="229.91 97.23 123.58 305.92 122.39 305.92 228.72 97.23 229.91 97.23"/><polygon class="cls-79" points="231.1 97.23 124.77 305.92 123.58 305.92 229.91 97.23 231.1 97.23"/><polygon class="cls-80" points="232.28 97.23 125.96 305.92 124.77 305.92 231.1 97.23 232.28 97.23"/><polygon class="cls-81" points="233.47 97.23 127.14 305.92 125.96 305.92 232.28 97.23 233.47 97.23"/><polygon class="cls-82" points="234.66 97.23 128.34 305.92 127.14 305.92 233.47 97.23 234.66 97.23"/><polygon class="cls-83" points="235.85 97.23 129.52 305.92 128.34 305.92 234.66 97.23 235.85 97.23"/><polygon class="cls-84" points="237.04 97.23 130.71 305.92 129.52 305.92 235.85 97.23 237.04 97.23"/><polygon class="cls-85" points="238.23 97.23 131.9 305.92 130.71 305.92 237.04 97.23 238.23 97.23"/><polygon class="cls-86" points="239.42 97.23 133.09 305.92 131.9 305.92 238.23 97.23 239.42 97.23"/><polygon class="cls-87" points="240.61 97.23 134.28 305.92 133.09 305.92 239.42 97.23 240.61 97.23"/><polygon class="cls-88" points="241.8 97.23 135.47 305.92 134.28 305.92 240.61 97.23 241.8 97.23"/><polygon class="cls-89" points="242.99 97.23 136.66 305.92 135.47 305.92 241.8 97.23 242.99 97.23"/><polygon class="cls-90" points="244.18 97.23 137.85 305.92 136.66 305.92 242.99 97.23 244.18 97.23"/><polygon class="cls-91" points="245.37 97.23 139.04 305.92 137.85 305.92 244.18 97.23 245.37 97.23"/><polygon class="cls-92" points="246.56 97.23 140.23 305.92 139.04 305.92 245.37 97.23 246.56 97.23"/><polygon class="cls-93" points="247.75 97.23 141.42 305.92 140.23 305.92 246.56 97.23 247.75 97.23"/><polygon class="cls-94" points="248.94 97.23 142.61 305.92 141.42 305.92 247.75 97.23 248.94 97.23"/><polygon class="cls-95" points="250.13 97.23 143.8 305.92 142.61 305.92 248.94 97.23 250.13 97.23"/><polygon class="cls-96" points="251.32 97.23 144.99 305.92 143.8 305.92 250.13 97.23 251.32 97.23"/><polygon class="cls-97" points="252.51 97.23 146.18 305.92 144.99 305.92 251.32 97.23 252.51 97.23"/><polygon class="cls-98" points="253.7 97.23 147.37 305.92 146.18 305.92 252.51 97.23 253.7 97.23"/><polygon class="cls-99" points="254.89 97.23 148.56 305.92 147.37 305.92 253.7 97.23 254.89 97.23"/><polygon class="cls-100" points="256.08 97.23 149.75 305.92 148.56 305.92 254.89 97.23 256.08 97.23"/><polygon class="cls-101" points="257.26 97.23 150.94 305.92 149.75 305.92 256.08 97.23 257.26 97.23"/><polygon class="cls-102" points="258.45 97.23 152.13 305.92 150.94 305.92 257.26 97.23 258.45 97.23"/><polygon class="cls-103" points="259.64 97.23 153.31 305.92 152.13 305.92 258.45 97.23 259.64 97.23"/><polygon class="cls-104" points="260.83 97.23 154.5 305.92 153.31 305.92 259.64 97.23 260.83 97.23"/><polygon class="cls-105" points="262.02 97.23 155.69 305.92 154.5 305.92 260.83 97.23 262.02 97.23"/><polygon class="cls-106" points="263.21 97.23 156.88 305.92 155.69 305.92 262.02 97.23 263.21 97.23"/><polygon class="cls-107" points="264.4 97.23 158.07 305.92 156.88 305.92 263.21 97.23 264.4 97.23"/><polygon class="cls-108" points="265.59 97.23 159.26 305.92 158.07 305.92 264.4 97.23 265.59 97.23"/><polygon class="cls-109" points="266.78 97.23 160.45 305.92 159.26 305.92 265.59 97.23 266.78 97.23"/><polygon class="cls-110" points="267.97 97.23 161.64 305.92 160.45 305.92 266.78 97.23 267.97 97.23"/><polygon class="cls-111" points="269.16 97.23 162.83 305.92 161.64 305.92 267.97 97.23 269.16 97.23"/><polygon class="cls-112" points="270.35 97.23 164.02 305.92 162.83 305.92 269.16 97.23 270.35 97.23"/><polygon class="cls-113" points="271.54 97.23 165.21 305.92 164.02 305.92 270.35 97.23 271.54 97.23"/><polygon class="cls-114" points="272.73 97.23 166.4 305.92 165.21 305.92 271.54 97.23 272.73 97.23"/><polygon class="cls-115" points="273.92 97.23 167.59 305.92 166.4 305.92 272.73 97.23 273.92 97.23"/><polygon class="cls-116" points="275.11 97.23 168.78 305.92 167.59 305.92 273.92 97.23 275.11 97.23"/><polygon class="cls-117" points="276.3 97.23 169.97 305.92 168.78 305.92 275.11 97.23 276.3 97.23"/><polygon class="cls-118" points="277.49 97.23 171.16 305.92 169.97 305.92 276.3 97.23 277.49 97.23"/><polygon class="cls-119" points="278.68 97.23 172.35 305.92 171.16 305.92 277.49 97.23 278.68 97.23"/><polygon class="cls-120" points="279.87 97.23 173.54 305.92 172.35 305.92 278.68 97.23 279.87 97.23"/><polygon class="cls-121" points="281.06 97.23 174.73 305.92 173.54 305.92 279.87 97.23 281.06 97.23"/><polygon class="cls-122" points="282.25 97.23 175.92 305.92 174.73 305.92 281.06 97.23 282.25 97.23"/><polygon class="cls-123" points="283.44 97.23 177.11 305.92 175.92 305.92 282.25 97.23 283.44 97.23"/><polygon class="cls-124" points="284.63 97.23 178.29 305.92 177.11 305.92 283.44 97.23 284.63 97.23"/><polygon class="cls-125" points="285.81 97.23 179.49 305.92 178.29 305.92 284.63 97.23 285.81 97.23"/><polygon class="cls-126" points="287 97.23 180.68 305.92 179.49 305.92 285.81 97.23 287 97.23"/><polygon class="cls-127" points="288.19 97.23 181.86 305.92 180.68 305.92 287 97.23 288.19 97.23"/><polygon class="cls-128" points="289.38 97.23 183.05 305.92 181.86 305.92 288.19 97.23 289.38 97.23"/><polygon class="cls-129" points="290.57 97.23 184.24 305.92 183.05 305.92 289.38 97.23 290.57 97.23"/><polygon class="cls-130" points="291.76 97.23 185.43 305.92 184.24 305.92 290.57 97.23 291.76 97.23"/><polygon class="cls-131" points="292.95 97.23 186.62 305.92 185.43 305.92 291.76 97.23 292.95 97.23"/><polygon class="cls-132" points="294.14 97.23 187.81 305.92 186.62 305.92 292.95 97.23 294.14 97.23"/><polygon class="cls-133" points="295.33 97.23 189 305.92 187.81 305.92 294.14 97.23 295.33 97.23"/><polygon class="cls-134" points="296.52 97.23 190.19 305.92 189 305.92 295.33 97.23 296.52 97.23"/><polygon class="cls-135" points="297.71 97.23 191.38 305.92 190.19 305.92 296.52 97.23 297.71 97.23"/><polygon class="cls-136" points="298.9 97.23 192.57 305.92 191.38 305.92 297.71 97.23 298.9 97.23"/><polygon class="cls-137" points="300.09 97.23 193.76 305.92 192.57 305.92 298.9 97.23 300.09 97.23"/><polygon class="cls-138" points="301.28 97.23 194.95 305.92 193.76 305.92 300.09 97.23 301.28 97.23"/><polygon class="cls-139" points="302.47 97.23 196.14 305.92 194.95 305.92 301.28 97.23 302.47 97.23"/><polygon class="cls-140" points="303.66 97.23 197.33 305.92 196.14 305.92 302.47 97.23 303.66 97.23"/><polygon class="cls-141" points="304.85 97.23 198.52 305.92 197.33 305.92 303.66 97.23 304.85 97.23"/><polygon class="cls-142" points="306.04 97.23 199.71 305.92 198.52 305.92 304.85 97.23 306.04 97.23"/><polygon class="cls-143" points="307.23 97.23 200.9 305.92 199.71 305.92 306.04 97.23 307.23 97.23"/><polygon class="cls-144" points="308.42 97.23 202.09 305.92 200.9 305.92 307.23 97.23 308.42 97.23"/><polygon class="cls-145" points="309.61 97.23 203.28 305.92 202.09 305.92 308.42 97.23 309.61 97.23"/><polygon class="cls-146" points="310.8 97.23 204.47 305.92 203.28 305.92 309.61 97.23 310.8 97.23"/><polygon class="cls-147" points="311.98 97.23 205.66 305.92 204.47 305.92 310.8 97.23 311.98 97.23"/><polygon class="cls-148" points="313.17 97.23 206.84 305.92 205.66 305.92 311.98 97.23 313.17 97.23"/><polygon class="cls-149" points="314.36 97.23 208.03 305.92 206.84 305.92 313.17 97.23 314.36 97.23"/><polygon class="cls-150" points="315.55 97.23 209.22 305.92 208.03 305.92 314.36 97.23 315.55 97.23"/><polygon class="cls-151" points="316.74 97.23 210.41 305.92 209.22 305.92 315.55 97.23 316.74 97.23"/><polygon class="cls-152" points="317.93 97.23 211.6 305.92 210.41 305.92 316.74 97.23 317.93 97.23"/><polygon class="cls-153" points="319.12 97.23 212.79 305.92 211.6 305.92 317.93 97.23 319.12 97.23"/><polygon class="cls-154" points="320.31 97.23 213.98 305.92 212.79 305.92 319.12 97.23 320.31 97.23"/><polygon class="cls-155" points="321.5 97.23 215.17 305.92 213.98 305.92 320.31 97.23 321.5 97.23"/><polygon class="cls-156" points="322.69 97.23 216.36 305.92 215.17 305.92 321.5 97.23 322.69 97.23"/><polygon class="cls-157" points="323.88 97.23 217.55 305.92 216.36 305.92 322.69 97.23 323.88 97.23"/><polygon class="cls-158" points="325.07 97.23 218.74 305.92 217.55 305.92 323.88 97.23 325.07 97.23"/><polygon class="cls-159" points="326.26 97.23 219.93 305.92 218.74 305.92 325.07 97.23 326.26 97.23"/><polygon class="cls-160" points="327.45 97.23 221.12 305.92 219.93 305.92 326.26 97.23 327.45 97.23"/><polygon class="cls-161" points="328.64 97.23 222.31 305.92 221.12 305.92 327.45 97.23 328.64 97.23"/><polygon class="cls-162" points="329.83 97.23 223.5 305.92 222.31 305.92 328.64 97.23 329.83 97.23"/><polygon class="cls-163" points="331.02 97.23 224.69 305.92 223.5 305.92 329.83 97.23 331.02 97.23"/><polygon class="cls-164" points="332.21 97.23 225.88 305.92 224.69 305.92 331.02 97.23 332.21 97.23"/><polygon class="cls-165" points="333.4 97.23 227.07 305.92 225.88 305.92 332.21 97.23 333.4 97.23"/><polygon class="cls-166" points="334.58 97.23 228.26 305.92 227.07 305.92 333.4 97.23 334.58 97.23"/><polygon class="cls-167" points="335.77 97.23 229.45 305.92 228.26 305.92 334.58 97.23 335.77 97.23"/><polygon class="cls-168" points="336.96 97.23 230.63 305.92 229.45 305.92 335.77 97.23 336.96 97.23"/><polygon class="cls-169" points="338.15 97.23 231.82 305.92 230.63 305.92 336.96 97.23 338.15 97.23"/><polygon class="cls-169" points="364.24 97.23 371.33 100.84 371.33 305.92 231.82 305.92 338.15 97.23 364.24 97.23"/></g><g class="cls-170"><polygon class="cls-169" points="312.54 51.26 316.81 75.46 7.36 130.03 5.63 120.2 5.63 51.26 312.54 51.26"/><rect class="cls-169" x="5.19" y="102.72" width="314.22" height="2.49" transform="matrix(0.98, -0.17, 0.17, 0.98, -15.59, 29.76)"/><rect class="cls-171" x="5.62" y="105.17" width="314.22" height="2.49" transform="translate(-16.01 29.88) rotate(-10)"/><rect class="cls-172" x="6.06" y="107.62" width="314.22" height="2.49" transform="translate(-16.43 29.99) rotate(-10)"/><rect class="cls-173" x="6.49" y="110.07" width="314.22" height="2.49" transform="matrix(0.98, -0.17, 0.17, 0.98, -16.84, 30.1)"/><rect class="cls-174" x="6.92" y="112.52" width="314.22" height="2.49" transform="translate(-17.26 30.21) rotate(-10)"/><rect class="cls-175" x="7.35" y="114.98" width="314.22" height="2.49" transform="translate(-17.68 30.32) rotate(-10)"/><rect class="cls-176" x="7.78" y="117.43" width="314.22" height="2.49" transform="translate(-18.1 30.44) rotate(-10)"/><rect class="cls-177" x="8.22" y="119.88" width="314.22" height="2.49" transform="translate(-18.52 30.55) rotate(-10)"/><rect class="cls-178" x="8.65" y="122.33" width="314.22" height="2.49" transform="translate(-18.94 30.66) rotate(-10)"/><rect class="cls-179" x="9.08" y="124.78" width="314.22" height="2.49" transform="matrix(0.98, -0.17, 0.17, 0.98, -19.36, 30.77)"/><rect class="cls-180" x="9.51" y="127.23" width="314.22" height="2.49" transform="matrix(0.98, -0.17, 0.17, 0.98, -19.78, 30.89)"/><rect class="cls-181" x="9.94" y="129.68" width="314.22" height="2.49" transform="translate(-20.2 31) rotate(-10)"/><rect class="cls-182" x="10.38" y="132.13" width="314.22" height="2.49" transform="translate(-20.62 31.11) rotate(-10)"/><rect class="cls-183" x="10.81" y="134.58" width="314.22" height="2.49" transform="translate(-21.03 31.22) rotate(-10)"/><rect class="cls-184" x="11.24" y="137.03" width="314.22" height="2.49" transform="matrix(0.98, -0.17, 0.17, 0.98, -21.45, 31.33)"/><rect class="cls-185" x="11.67" y="139.48" width="314.22" height="2.49" transform="translate(-21.87 31.45) rotate(-10)"/><rect class="cls-186" x="12.1" y="141.93" width="314.22" height="2.49" transform="translate(-22.29 31.56) rotate(-10)"/><rect class="cls-187" x="12.54" y="144.38" width="314.22" height="2.49" transform="translate(-22.71 31.67) rotate(-10)"/><rect class="cls-188" x="12.97" y="146.83" width="314.22" height="2.49" transform="translate(-23.13 31.78) rotate(-10)"/><rect class="cls-189" x="13.4" y="149.28" width="314.22" height="2.49" transform="translate(-23.55 31.9) rotate(-10)"/><rect class="cls-190" x="13.83" y="151.73" width="314.22" height="2.49" transform="matrix(0.98, -0.17, 0.17, 0.98, -23.97, 32.01)"/><rect class="cls-191" x="14.26" y="154.18" width="314.22" height="2.49" transform="translate(-24.39 32.12) rotate(-10)"/><rect class="cls-192" x="14.7" y="156.63" width="314.22" height="2.49" transform="translate(-24.8 32.23) rotate(-10)"/><rect class="cls-193" x="15.13" y="159.08" width="314.22" height="2.49" transform="matrix(0.98, -0.17, 0.17, 0.98, -25.22, 32.34)"/><rect class="cls-194" x="15.56" y="161.53" width="314.22" height="2.49" transform="translate(-25.64 32.46) rotate(-10)"/><rect class="cls-195" x="15.99" y="163.98" width="314.22" height="2.49" transform="translate(-26.06 32.57) rotate(-10)"/><rect class="cls-196" x="16.43" y="166.43" width="314.22" height="2.49" transform="translate(-26.48 32.68) rotate(-10)"/><rect class="cls-197" x="16.86" y="168.88" width="314.22" height="2.49" transform="translate(-26.9 32.79) rotate(-10)"/><rect class="cls-198" x="17.29" y="171.33" width="314.22" height="2.49" transform="translate(-27.32 32.91) rotate(-10)"/><rect class="cls-199" x="17.72" y="173.78" width="314.22" height="2.49" transform="matrix(0.98, -0.17, 0.17, 0.98, -27.74, 33.02)"/><rect class="cls-200" x="18.15" y="176.23" width="314.22" height="2.49" transform="translate(-28.16 33.13) rotate(-10)"/><rect class="cls-201" x="18.59" y="178.68" width="314.22" height="2.49" transform="translate(-28.57 33.24) rotate(-10)"/><rect class="cls-202" x="19.02" y="181.13" width="314.22" height="2.49" transform="translate(-28.99 33.36) rotate(-10)"/><rect class="cls-203" x="19.45" y="183.58" width="314.22" height="2.49" transform="matrix(0.98, -0.17, 0.17, 0.98, -29.41, 33.47)"/><rect class="cls-204" x="19.88" y="186.03" width="314.22" height="2.49" transform="translate(-29.83 33.58) rotate(-10)"/><rect class="cls-205" x="20.31" y="188.48" width="314.22" height="2.49" transform="translate(-30.25 33.69) rotate(-10)"/><rect class="cls-206" x="20.75" y="190.93" width="314.22" height="2.49" transform="translate(-30.67 33.8) rotate(-10)"/><rect class="cls-207" x="21.18" y="193.38" width="314.22" height="2.49" transform="translate(-31.09 33.92) rotate(-10)"/><rect class="cls-208" x="21.61" y="195.83" width="314.22" height="2.49" transform="translate(-31.51 34.03) rotate(-10)"/><rect class="cls-209" x="22.04" y="198.28" width="314.22" height="2.49" transform="translate(-31.93 34.14) rotate(-10)"/><rect class="cls-210" x="22.47" y="200.73" width="314.22" height="2.49" transform="matrix(0.98, -0.17, 0.17, 0.98, -32.34, 34.25)"/><rect class="cls-210" x="22.91" y="203.18" width="314.22" height="2.49" transform="translate(-32.76 34.37) rotate(-10)"/><rect class="cls-211" x="23.34" y="205.64" width="314.22" height="2.49" transform="translate(-33.18 34.48) rotate(-10)"/><rect class="cls-212" x="23.77" y="208.09" width="314.22" height="2.49" transform="translate(-33.6 34.59) rotate(-10)"/><rect class="cls-213" x="24.2" y="210.54" width="314.22" height="2.49" transform="translate(-34.02 34.7) rotate(-10)"/><rect class="cls-214" x="24.63" y="212.99" width="314.22" height="2.49" transform="translate(-34.44 34.81) rotate(-10)"/><rect class="cls-215" x="25.07" y="215.44" width="314.22" height="2.49" transform="translate(-34.86 34.93) rotate(-10)"/><rect class="cls-216" x="25.5" y="217.89" width="314.22" height="2.49" transform="translate(-35.28 35.04) rotate(-10)"/><rect class="cls-217" x="25.93" y="220.34" width="314.22" height="2.49" transform="translate(-35.7 35.15) rotate(-10)"/><rect class="cls-218" x="26.36" y="222.79" width="314.22" height="2.49" transform="translate(-36.12 35.26) rotate(-10)"/><rect class="cls-219" x="26.79" y="225.24" width="314.22" height="2.49" transform="translate(-36.53 35.38) rotate(-10)"/><rect class="cls-220" x="27.23" y="227.69" width="314.22" height="2.49" transform="translate(-36.95 35.49) rotate(-10)"/><rect class="cls-221" x="27.66" y="230.14" width="314.22" height="2.49" transform="translate(-37.37 35.6) rotate(-10)"/><rect class="cls-222" x="28.09" y="232.59" width="314.22" height="2.49" transform="translate(-37.79 35.71) rotate(-10)"/><rect class="cls-223" x="28.52" y="235.04" width="314.22" height="2.49" transform="translate(-38.21 35.82) rotate(-10)"/><rect class="cls-224" x="28.95" y="237.49" width="314.22" height="2.49" transform="translate(-38.63 35.94) rotate(-10)"/><rect class="cls-225" x="29.39" y="239.94" width="314.22" height="2.49" transform="translate(-39.05 36.05) rotate(-10)"/><rect class="cls-226" x="29.82" y="242.39" width="314.22" height="2.49" transform="matrix(0.98, -0.17, 0.17, 0.98, -39.47, 36.16)"/><rect class="cls-227" x="30.25" y="244.84" width="314.22" height="2.49" transform="translate(-39.89 36.27) rotate(-10)"/><rect class="cls-228" x="30.68" y="247.29" width="314.22" height="2.49" transform="translate(-40.3 36.39) rotate(-10)"/><rect class="cls-229" x="31.11" y="249.74" width="314.22" height="2.49" transform="translate(-40.72 36.5) rotate(-10)"/><rect class="cls-230" x="31.55" y="252.19" width="314.22" height="2.49" transform="translate(-41.14 36.61) rotate(-10)"/><rect class="cls-231" x="31.98" y="254.64" width="314.22" height="2.49" transform="translate(-41.56 36.72) rotate(-10)"/><rect class="cls-232" x="32.41" y="257.09" width="314.22" height="2.49" transform="translate(-41.98 36.83) rotate(-10)"/><rect class="cls-233" x="32.84" y="259.54" width="314.22" height="2.49" transform="translate(-42.4 36.95) rotate(-10)"/><rect class="cls-234" x="33.28" y="261.99" width="314.22" height="2.49" transform="translate(-42.82 37.06) rotate(-10)"/><rect class="cls-235" x="33.71" y="264.44" width="314.22" height="2.49" transform="translate(-43.24 37.17) rotate(-10)"/><rect class="cls-236" x="34.14" y="266.89" width="314.22" height="2.49" transform="translate(-43.66 37.28) rotate(-10)"/><rect class="cls-237" x="34.57" y="269.34" width="314.22" height="2.49" transform="translate(-44.07 37.4) rotate(-10)"/><rect class="cls-238" x="35" y="271.79" width="314.22" height="2.49" transform="translate(-44.49 37.51) rotate(-10)"/><rect class="cls-239" x="35.44" y="274.24" width="314.22" height="2.49" transform="translate(-44.91 37.62) rotate(-10)"/><rect class="cls-240" x="35.87" y="276.69" width="314.22" height="2.49" transform="translate(-45.33 37.73) rotate(-10)"/><rect class="cls-241" x="36.3" y="279.14" width="314.22" height="2.49" transform="translate(-45.75 37.85) rotate(-10)"/><rect class="cls-242" x="36.73" y="281.59" width="314.22" height="2.49" transform="translate(-46.17 37.96) rotate(-10)"/><rect class="cls-243" x="37.16" y="284.04" width="314.22" height="2.49" transform="translate(-46.59 38.07) rotate(-10)"/><rect class="cls-244" x="37.6" y="286.49" width="314.22" height="2.49" transform="translate(-47.01 38.18) rotate(-10)"/><rect class="cls-245" x="38.03" y="288.94" width="314.22" height="2.49" transform="translate(-47.43 38.29) rotate(-10)"/><rect class="cls-246" x="38.46" y="291.39" width="314.22" height="2.49" transform="translate(-47.85 38.41) rotate(-10)"/><rect class="cls-247" x="38.89" y="293.84" width="314.22" height="2.49" transform="translate(-48.26 38.52) rotate(-10)"/><rect class="cls-248" x="39.32" y="296.3" width="314.22" height="2.49" transform="matrix(0.98, -0.17, 0.17, 0.98, -48.68, 38.63)"/><rect class="cls-249" x="39.76" y="298.75" width="314.22" height="2.49" transform="translate(-49.1 38.74) rotate(-10)"/><rect class="cls-250" x="40.19" y="301.2" width="314.22" height="2.49" transform="translate(-49.52 38.86) rotate(-10)"/><polygon class="cls-250" points="352.24 276.38 353.4 282.95 353.4 351.89 46.48 351.89 42.79 330.95 352.24 276.38"/></g><g class="cls-251"><polygon class="cls-3" points="55.12 198.52 224.31 367.72 191 401.04 55.12 401.04 55.12 198.52"/><polygon class="cls-3" points="55.12 192.3 227.43 364.61 224.31 367.72 55.12 198.52 55.12 192.3"/><polygon class="cls-252" points="55.12 186.07 230.54 361.5 227.43 364.61 55.12 192.3 55.12 186.07"/><polygon class="cls-253" points="55.12 179.85 233.65 358.38 230.54 361.5 55.12 186.07 55.12 179.85"/><polygon class="cls-254" points="55.12 173.62 236.76 355.27 233.65 358.38 55.12 179.85 55.12 173.62"/><polygon class="cls-255" points="55.12 167.4 239.88 352.16 236.76 355.27 55.12 173.62 55.12 167.4"/><polygon class="cls-256" points="55.12 161.18 242.99 349.05 239.88 352.16 55.12 167.4 55.12 161.18"/><polygon class="cls-257" points="55.12 154.95 246.1 345.94 242.99 349.05 55.12 161.18 55.12 154.95"/><polygon class="cls-258" points="55.12 148.73 249.21 342.82 246.1 345.94 55.12 154.95 55.12 148.73"/><polygon class="cls-259" points="55.12 142.5 252.32 339.71 249.21 342.82 55.12 148.73 55.12 142.5"/><polygon class="cls-260" points="55.12 136.28 255.44 336.6 252.32 339.71 55.12 142.5 55.12 136.28"/><polygon class="cls-261" points="55.12 130.06 258.55 333.49 255.44 336.6 55.12 136.28 55.12 130.06"/><polygon class="cls-262" points="55.12 127.53 56.97 125.68 261.66 330.37 258.55 333.49 55.12 130.06 55.12 127.53"/><rect class="cls-263" x="158.67" y="81.73" width="4.4" height="289.48" transform="translate(-113.02 180.08) rotate(-45)"/><rect class="cls-264" x="161.78" y="78.62" width="4.4" height="289.48" transform="translate(-109.91 181.37) rotate(-45)"/><rect class="cls-265" x="164.89" y="75.51" width="4.4" height="289.48" transform="translate(-106.8 182.66) rotate(-45)"/><rect class="cls-266" x="168.01" y="72.39" width="4.4" height="289.48" transform="translate(-103.69 183.95) rotate(-45)"/><rect class="cls-267" x="171.12" y="69.28" width="4.4" height="289.48" transform="translate(-100.57 185.24) rotate(-45)"/><rect class="cls-268" x="174.23" y="66.17" width="4.4" height="289.48" transform="translate(-97.46 186.53) rotate(-45)"/><rect class="cls-269" x="177.34" y="63.06" width="4.4" height="289.48" transform="translate(-94.35 187.82) rotate(-45)"/><rect class="cls-270" x="180.45" y="59.95" width="4.4" height="289.48" transform="translate(-91.24 189.11) rotate(-45)"/><rect class="cls-271" x="183.57" y="56.83" width="4.4" height="289.48" transform="translate(-88.12 190.4) rotate(-45)"/><rect class="cls-272" x="186.68" y="53.72" width="4.4" height="289.48" transform="translate(-85.01 191.69) rotate(-45)"/><rect class="cls-273" x="189.79" y="50.61" width="4.4" height="289.48" transform="translate(-81.9 192.97) rotate(-45)"/><rect class="cls-274" x="192.9" y="47.5" width="4.4" height="289.48" transform="translate(-78.79 194.26) rotate(-45)"/><rect class="cls-275" x="196.01" y="44.39" width="4.4" height="289.48" transform="translate(-75.68 195.55) rotate(-45)"/><rect class="cls-276" x="199.13" y="41.27" width="4.4" height="289.48" transform="translate(-72.56 196.84) rotate(-45)"/><rect class="cls-277" x="202.24" y="38.16" width="4.4" height="289.48" transform="translate(-69.45 198.13) rotate(-45)"/><rect class="cls-278" x="205.35" y="35.05" width="4.4" height="289.48" transform="translate(-66.34 199.42) rotate(-45)"/><rect class="cls-279" x="208.46" y="31.94" width="4.4" height="289.48" transform="translate(-63.23 200.71) rotate(-45)"/><polygon class="cls-280" points="109.87 72.78 112.98 69.66 316.42 273.09 316.42 275.62 314.57 277.47 109.87 72.78"/><polygon class="cls-281" points="112.98 69.66 116.1 66.55 316.42 266.87 316.42 273.09 112.98 69.66"/><polygon class="cls-282" points="116.1 66.55 119.21 63.44 316.42 260.65 316.42 266.87 116.1 66.55"/><polygon class="cls-283" points="119.21 63.44 122.32 60.33 316.42 254.42 316.42 260.65 119.21 63.44"/><polygon class="cls-284" points="122.32 60.33 125.43 57.21 316.42 248.2 316.42 254.42 122.32 60.33"/><polygon class="cls-285" points="125.43 57.21 128.54 54.1 316.42 241.97 316.42 248.2 125.43 57.21"/><polygon class="cls-286" points="128.54 54.1 131.66 50.99 316.42 235.75 316.42 241.97 128.54 54.1"/><polygon class="cls-287" points="131.66 50.99 134.77 47.88 316.42 229.53 316.42 235.75 131.66 50.99"/><polygon class="cls-288" points="134.77 47.88 137.88 44.77 316.42 223.3 316.42 229.53 134.77 47.88"/><polygon class="cls-289" points="137.88 44.77 140.99 41.65 316.42 217.08 316.42 223.3 137.88 44.77"/><polygon class="cls-290" points="140.99 41.65 144.11 38.54 316.42 210.85 316.42 217.08 140.99 41.65"/><polygon class="cls-291" points="144.11 38.54 147.22 35.43 316.42 204.63 316.42 210.85 144.11 38.54"/><polygon class="cls-291" points="147.22 35.43 180.54 2.11 316.42 2.11 316.42 204.63 147.22 35.43"/></g><g class="cls-292"><polygon class="cls-3" points="101.7 108.94 2.18 304.26 0 303.15 0 108.94 101.7 108.94"/><polygon class="cls-3" points="103.39 108.94 3.52 304.95 2.18 304.26 101.7 108.94 103.39 108.94"/><polygon class="cls-4" points="105.09 108.94 4.87 305.63 3.52 304.95 103.39 108.94 105.09 108.94"/><polygon class="cls-5" points="106.79 108.94 6.22 306.32 4.87 305.63 105.09 108.94 106.79 108.94"/><polygon class="cls-6" points="108.49 108.94 7.69 306.76 7.09 306.76 6.22 306.32 106.79 108.94 108.49 108.94"/><polygon class="cls-293" points="110.18 108.94 9.39 306.76 7.69 306.76 108.49 108.94 110.18 108.94"/><polygon class="cls-8" points="111.88 108.94 11.09 306.76 9.39 306.76 110.18 108.94 111.88 108.94"/><polygon class="cls-9" points="113.58 108.94 12.78 306.76 11.09 306.76 111.88 108.94 113.58 108.94"/><polygon class="cls-10" points="115.28 108.94 14.48 306.76 12.78 306.76 113.58 108.94 115.28 108.94"/><polygon class="cls-11" points="116.97 108.94 16.18 306.76 14.48 306.76 115.28 108.94 116.97 108.94"/><polygon class="cls-12" points="118.67 108.94 17.88 306.76 16.18 306.76 116.97 108.94 118.67 108.94"/><polygon class="cls-13" points="120.37 108.94 19.57 306.76 17.88 306.76 118.67 108.94 120.37 108.94"/><polygon class="cls-294" points="122.06 108.94 21.27 306.76 19.57 306.76 120.37 108.94 122.06 108.94"/><polygon class="cls-295" points="123.76 108.94 22.97 306.76 21.27 306.76 122.06 108.94 123.76 108.94"/><polygon class="cls-16" points="125.46 108.94 24.67 306.76 22.97 306.76 123.76 108.94 125.46 108.94"/><polygon class="cls-17" points="127.16 108.94 26.36 306.76 24.67 306.76 125.46 108.94 127.16 108.94"/><polygon class="cls-18" points="128.85 108.94 28.06 306.76 26.36 306.76 127.16 108.94 128.85 108.94"/><polygon class="cls-19" points="130.55 108.94 29.76 306.76 28.06 306.76 128.85 108.94 130.55 108.94"/><polygon class="cls-20" points="132.25 108.94 31.46 306.76 29.76 306.76 130.55 108.94 132.25 108.94"/><polygon class="cls-296" points="133.95 108.94 33.15 306.76 31.46 306.76 132.25 108.94 133.95 108.94"/><polygon class="cls-22" points="135.65 108.94 34.85 306.76 33.15 306.76 133.95 108.94 135.65 108.94"/><polygon class="cls-297" points="137.34 108.94 36.55 306.76 34.85 306.76 135.65 108.94 137.34 108.94"/><polygon class="cls-24" points="139.04 108.94 38.24 306.76 36.55 306.76 137.34 108.94 139.04 108.94"/><polygon class="cls-25" points="140.74 108.94 39.94 306.76 38.24 306.76 139.04 108.94 140.74 108.94"/><polygon class="cls-298" points="142.43 108.94 41.64 306.76 39.94 306.76 140.74 108.94 142.43 108.94"/><polygon class="cls-27" points="144.13 108.94 43.34 306.76 41.64 306.76 142.43 108.94 144.13 108.94"/><polygon class="cls-28" points="145.83 108.94 45.03 306.76 43.34 306.76 144.13 108.94 145.83 108.94"/><polygon class="cls-299" points="147.53 108.94 46.73 306.76 45.03 306.76 145.83 108.94 147.53 108.94"/><polygon class="cls-30" points="149.22 108.94 48.43 306.76 46.73 306.76 147.53 108.94 149.22 108.94"/><polygon class="cls-300" points="150.92 108.94 50.13 306.76 48.43 306.76 149.22 108.94 150.92 108.94"/><polygon class="cls-32" points="152.62 108.94 51.83 306.76 50.13 306.76 150.92 108.94 152.62 108.94"/><polygon class="cls-33" points="154.32 108.94 53.52 306.76 51.83 306.76 152.62 108.94 154.32 108.94"/><polygon class="cls-301" points="156.01 108.94 55.22 306.76 53.52 306.76 154.32 108.94 156.01 108.94"/><polygon class="cls-35" points="157.71 108.94 56.92 306.76 55.22 306.76 156.01 108.94 157.71 108.94"/><polygon class="cls-302" points="159.41 108.94 58.61 306.76 56.92 306.76 157.71 108.94 159.41 108.94"/><polygon class="cls-303" points="161.11 108.94 60.31 306.76 58.61 306.76 159.41 108.94 161.11 108.94"/><polygon class="cls-38" points="162.8 108.94 62.01 306.76 60.31 306.76 161.11 108.94 162.8 108.94"/><polygon class="cls-304" points="164.5 108.94 63.71 306.76 62.01 306.76 162.8 108.94 164.5 108.94"/><polygon class="cls-40" points="166.2 108.94 65.4 306.76 63.71 306.76 164.5 108.94 166.2 108.94"/><polygon class="cls-41" points="167.9 108.94 67.1 306.76 65.4 306.76 166.2 108.94 167.9 108.94"/><polygon class="cls-305" points="169.59 108.94 68.8 306.76 67.1 306.76 167.9 108.94 169.59 108.94"/><polygon class="cls-306" points="171.29 108.94 70.5 306.76 68.8 306.76 169.59 108.94 171.29 108.94"/><polygon class="cls-45" points="172.99 108.94 72.19 306.76 70.5 306.76 171.29 108.94 172.99 108.94"/><polygon class="cls-46" points="174.69 108.94 73.89 306.76 72.19 306.76 172.99 108.94 174.69 108.94"/><polygon class="cls-47" points="176.38 108.94 75.59 306.76 73.89 306.76 174.69 108.94 176.38 108.94"/><polygon class="cls-48" points="178.08 108.94 77.29 306.76 75.59 306.76 176.38 108.94 178.08 108.94"/><polygon class="cls-307" points="179.78 108.94 78.98 306.76 77.29 306.76 178.08 108.94 179.78 108.94"/><polygon class="cls-50" points="181.47 108.94 80.68 306.76 78.98 306.76 179.78 108.94 181.47 108.94"/><polygon class="cls-308" points="183.17 108.94 82.38 306.76 80.68 306.76 181.47 108.94 183.17 108.94"/><polygon class="cls-309" points="184.87 108.94 84.08 306.76 82.38 306.76 183.17 108.94 184.87 108.94"/><polygon class="cls-53" points="186.57 108.94 85.77 306.76 84.08 306.76 184.87 108.94 186.57 108.94"/><polygon class="cls-54" points="188.26 108.94 87.47 306.76 85.77 306.76 186.57 108.94 188.26 108.94"/><polygon class="cls-55" points="189.96 108.94 89.17 306.76 87.47 306.76 188.26 108.94 189.96 108.94"/><polygon class="cls-56" points="191.66 108.94 90.86 306.76 89.17 306.76 189.96 108.94 191.66 108.94"/><polygon class="cls-57" points="193.36 108.94 92.56 306.76 90.86 306.76 191.66 108.94 193.36 108.94"/><polygon class="cls-310" points="195.05 108.94 94.26 306.76 92.56 306.76 193.36 108.94 195.05 108.94"/><polygon class="cls-311" points="196.75 108.94 95.96 306.76 94.26 306.76 195.05 108.94 196.75 108.94"/><polygon class="cls-60" points="198.45 108.94 97.66 306.76 95.96 306.76 196.75 108.94 198.45 108.94"/><polygon class="cls-61" points="200.15 108.94 99.35 306.76 97.66 306.76 198.45 108.94 200.15 108.94"/><polygon class="cls-62" points="201.84 108.94 101.05 306.76 99.35 306.76 200.15 108.94 201.84 108.94"/><polygon class="cls-63" points="203.54 108.94 102.75 306.76 101.05 306.76 201.84 108.94 203.54 108.94"/><polygon class="cls-64" points="205.24 108.94 104.44 306.76 102.75 306.76 203.54 108.94 205.24 108.94"/><polygon class="cls-312" points="206.94 108.94 106.14 306.76 104.44 306.76 205.24 108.94 206.94 108.94"/><polygon class="cls-313" points="208.63 108.94 107.84 306.76 106.14 306.76 206.94 108.94 208.63 108.94"/><polygon class="cls-314" points="210.33 108.94 109.54 306.76 107.84 306.76 208.63 108.94 210.33 108.94"/><polygon class="cls-315" points="212.03 108.94 111.23 306.76 109.54 306.76 210.33 108.94 212.03 108.94"/><polygon class="cls-69" points="213.73 108.94 112.93 306.76 111.23 306.76 212.03 108.94 213.73 108.94"/><polygon class="cls-70" points="215.42 108.94 114.63 306.76 112.93 306.76 213.73 108.94 215.42 108.94"/><polygon class="cls-71" points="217.12 108.94 116.33 306.76 114.63 306.76 215.42 108.94 217.12 108.94"/><polygon class="cls-72" points="218.82 108.94 118.02 306.76 116.33 306.76 217.12 108.94 218.82 108.94"/><polygon class="cls-316" points="220.52 108.94 119.72 306.76 118.02 306.76 218.82 108.94 220.52 108.94"/><polygon class="cls-317" points="222.21 108.94 121.42 306.76 119.72 306.76 220.52 108.94 222.21 108.94"/><polygon class="cls-75" points="223.91 108.94 123.12 306.76 121.42 306.76 222.21 108.94 223.91 108.94"/><polygon class="cls-318" points="225.61 108.94 124.81 306.76 123.12 306.76 223.91 108.94 225.61 108.94"/><polygon class="cls-77" points="227.31 108.94 126.51 306.76 124.81 306.76 225.61 108.94 227.31 108.94"/><polygon class="cls-78" points="227.87 111.16 128.21 306.76 126.51 306.76 227.31 108.94 227.87 108.94 227.87 111.16"/><polygon class="cls-79" points="227.87 114.49 129.91 306.76 128.21 306.76 227.87 111.16 227.87 114.49"/><polygon class="cls-319" points="227.87 117.83 131.6 306.76 129.91 306.76 227.87 114.49 227.87 117.83"/><polygon class="cls-320" points="227.87 121.16 133.3 306.76 131.6 306.76 227.87 117.83 227.87 121.16"/><polygon class="cls-321" points="227.87 124.49 135 306.76 133.3 306.76 227.87 121.16 227.87 124.49"/><polygon class="cls-83" points="227.87 127.82 136.7 306.76 135 306.76 227.87 124.49 227.87 127.82"/><polygon class="cls-83" points="136.7 306.76 227.87 127.82 227.87 306.76 136.7 306.76"/></g><g class="cls-322"><polygon class="cls-291" points="124.93 164.87 246.64 286.58 124.93 286.58 124.93 164.87"/><polygon class="cls-291" points="124.93 160.51 250.1 285.69 249.21 286.58 246.64 286.58 124.93 164.87 124.93 160.51"/><polygon class="cls-323" points="124.93 156.15 252.28 283.51 250.1 285.69 124.93 160.51 124.93 156.15"/><polygon class="cls-324" points="124.93 151.78 254.47 281.32 252.28 283.51 124.93 156.15 124.93 151.78"/><polygon class="cls-325" points="124.93 147.42 256.65 279.14 254.47 281.32 124.93 151.78 124.93 147.42"/><polygon class="cls-326" points="124.93 143.06 258.83 276.96 256.65 279.14 124.93 147.42 124.93 143.06"/><polygon class="cls-327" points="124.93 138.69 261.01 274.78 258.83 276.96 124.93 143.06 124.93 138.69"/><polygon class="cls-328" points="124.93 134.33 263.19 272.6 261.01 274.78 124.93 138.69 124.93 134.33"/><polygon class="cls-329" points="124.93 129.97 265.38 270.42 263.19 272.6 124.93 134.33 124.93 129.97"/><polygon class="cls-330" points="124.93 125.61 267.56 268.24 265.38 270.42 124.93 129.97 124.93 125.61"/><polygon class="cls-331" points="124.93 121.24 269.74 266.05 267.56 268.24 124.93 125.61 124.93 121.24"/><polygon class="cls-332" points="124.93 116.88 271.92 263.87 269.74 266.05 124.93 121.24 124.93 116.88"/><polygon class="cls-333" points="124.93 112.52 274.1 261.69 271.92 263.87 124.93 116.88 124.93 112.52"/><polygon class="cls-334" points="124.93 108.15 276.28 259.51 274.1 261.69 124.93 112.52 124.93 108.15"/><polygon class="cls-335" points="124.93 103.79 278.46 257.33 276.28 259.51 124.93 108.15 124.93 103.79"/><polygon class="cls-336" points="124.93 99.43 280.65 255.15 278.46 257.33 124.93 103.79 124.93 99.43"/><polygon class="cls-337" points="124.93 95.06 282.83 252.96 280.65 255.15 124.93 99.43 124.93 95.06"/><polygon class="cls-338" points="124.93 90.7 285.01 250.78 282.83 252.96 124.93 95.06 124.93 90.7"/><polygon class="cls-339" points="124.93 86.34 287.19 248.6 285.01 250.78 124.93 90.7 124.93 86.34"/><polygon class="cls-340" points="124.93 81.97 289.37 246.42 287.19 248.6 124.93 86.34 124.93 81.97"/><polygon class="cls-341" points="124.93 77.61 291.55 244.24 289.37 246.42 124.93 81.97 124.93 77.61"/><polygon class="cls-342" points="124.93 73.25 293.74 242.06 291.55 244.24 124.93 77.61 124.93 73.25"/><polygon class="cls-343" points="124.93 68.88 295.92 239.87 293.74 242.06 124.93 73.25 124.93 68.88"/><polygon class="cls-344" points="124.93 64.52 298.1 237.69 295.92 239.87 124.93 68.88 124.93 64.52"/><polygon class="cls-345" points="124.93 60.16 300.28 235.51 298.1 237.69 124.93 64.52 124.93 60.16"/><polygon class="cls-346" points="124.93 56.68 125.37 56.23 302.46 233.33 300.28 235.51 124.93 60.16 124.93 56.68"/><rect class="cls-347" x="213.46" y="18.47" width="3.09" height="250.45" transform="translate(-38.63 194.12) rotate(-45)"/><rect class="cls-348" x="215.64" y="16.29" width="3.09" height="250.45" transform="translate(-36.45 195.02) rotate(-45)"/><rect class="cls-349" x="217.83" y="14.1" width="3.09" height="250.45" transform="translate(-34.27 195.93) rotate(-45)"/><rect class="cls-350" x="220.01" y="11.92" width="3.09" height="250.45" transform="translate(-32.09 196.83) rotate(-45)"/><rect class="cls-351" x="222.19" y="9.74" width="3.09" height="250.45" transform="translate(-29.91 197.73) rotate(-45)"/><rect class="cls-352" x="224.37" y="7.56" width="3.09" height="250.45" transform="translate(-27.72 198.64) rotate(-45)"/><polygon class="cls-353" points="138.46 43.15 140.64 40.96 317.48 217.81 317.48 218.31 315.55 220.24 138.46 43.15"/><polygon class="cls-354" points="140.64 40.96 142.82 38.78 317.48 213.44 317.48 217.81 140.64 40.96"/><polygon class="cls-355" points="142.82 38.78 145 36.6 317.48 209.08 317.48 213.44 142.82 38.78"/><polygon class="cls-356" points="145 36.6 147.18 34.42 317.48 204.72 317.48 209.08 145 36.6"/><polygon class="cls-357" points="147.18 34.42 149.37 32.24 317.48 200.35 317.48 204.72 147.18 34.42"/><polygon class="cls-358" points="149.37 32.24 151.55 30.06 317.48 195.99 317.48 200.35 149.37 32.24"/><polygon class="cls-359" points="151.55 30.06 153.73 27.88 317.48 191.63 317.48 195.99 151.55 30.06"/><polygon class="cls-360" points="153.73 27.88 155.91 25.69 317.48 187.26 317.48 191.63 153.73 27.88"/><polygon class="cls-361" points="155.91 25.69 158.09 23.51 317.48 182.9 317.48 187.26 155.91 25.69"/><polygon class="cls-362" points="158.09 23.51 160.27 21.33 317.48 178.54 317.48 182.9 158.09 23.51"/><polygon class="cls-363" points="160.27 21.33 162.45 19.15 317.48 174.18 317.48 178.54 160.27 21.33"/><polygon class="cls-364" points="162.45 19.15 164.64 16.97 317.48 169.81 317.48 174.18 162.45 19.15"/><polygon class="cls-250" points="164.64 16.97 166.82 14.79 317.48 165.45 317.48 169.81 164.64 16.97"/><polygon class="cls-250" points="166.82 14.79 181.6 0 317.48 0 317.48 165.45 166.82 14.79"/></g><g class="cls-365"><polygon class="cls-210" points="161.05 199.85 76.74 214.72 76.74 199.85 161.05 199.85"/><polygon class="cls-210" points="179.32 199.85 76.74 217.94 76.74 214.72 161.05 199.85 179.32 199.85"/><polygon class="cls-211" points="197.58 199.85 76.74 221.16 76.74 217.94 179.32 199.85 197.58 199.85"/><polygon class="cls-212" points="215.85 199.85 76.74 224.38 76.74 221.16 197.58 199.85 215.85 199.85"/><polygon class="cls-213" points="234.12 199.85 77.16 227.53 76.74 225.19 76.74 224.38 215.85 199.85 234.12 199.85"/><polygon class="cls-214" points="252.38 199.85 77.71 230.65 77.16 227.53 234.12 199.85 252.38 199.85"/><polygon class="cls-366" points="270.65 199.85 78.26 233.78 77.71 230.65 252.38 199.85 270.65 199.85"/><polygon class="cls-216" points="288.91 199.85 78.81 236.9 78.26 233.78 270.65 199.85 288.91 199.85"/><polygon class="cls-217" points="307.18 199.85 79.36 240.02 78.81 236.9 288.91 199.85 307.18 199.85"/><polygon class="cls-218" points="325.44 199.85 79.91 243.15 79.36 240.02 307.18 199.85 325.44 199.85"/><polygon class="cls-219" points="338.74 199.85 338.89 200.7 80.46 246.27 79.91 243.15 325.44 199.85 338.74 199.85"/><rect class="cls-220" x="78.74" y="223.46" width="262.42" height="3.17" transform="translate(-35.89 39.88) rotate(-10)"/><rect class="cls-221" x="79.29" y="226.59" width="262.42" height="3.17" transform="translate(-36.42 40.02) rotate(-10)"/><rect class="cls-222" x="79.84" y="229.71" width="262.42" height="3.17" transform="translate(-36.96 40.16) rotate(-10)"/><rect class="cls-223" x="80.39" y="232.83" width="262.42" height="3.17" transform="translate(-37.49 40.31) rotate(-10)"/><rect class="cls-224" x="80.95" y="235.96" width="262.42" height="3.17" transform="translate(-38.03 40.45) rotate(-10)"/><rect class="cls-367" x="81.5" y="239.08" width="262.42" height="3.17" transform="translate(-38.56 40.59) rotate(-10)"/><rect class="cls-226" x="82.05" y="242.2" width="262.42" height="3.17" transform="translate(-39.09 40.74) rotate(-10)"/><rect class="cls-227" x="82.6" y="245.33" width="262.42" height="3.17" transform="translate(-39.63 40.88) rotate(-10)"/><rect class="cls-228" x="83.15" y="248.45" width="262.42" height="3.17" transform="translate(-40.16 41.02) rotate(-10)"/><rect class="cls-229" x="83.7" y="251.58" width="262.42" height="3.17" transform="translate(-40.7 41.16) rotate(-10)"/><rect class="cls-368" x="84.25" y="254.7" width="262.42" height="3.17" transform="translate(-41.23 41.31) rotate(-10)"/><rect class="cls-231" x="84.8" y="257.82" width="262.42" height="3.17" transform="matrix(0.98, -0.17, 0.17, 0.98, -41.76, 41.45)"/><rect class="cls-232" x="85.35" y="260.95" width="262.42" height="3.17" transform="translate(-42.3 41.59) rotate(-10)"/><rect class="cls-233" x="85.9" y="264.07" width="262.42" height="3.17" transform="translate(-42.83 41.74) rotate(-10)"/><rect class="cls-234" x="86.45" y="267.19" width="262.42" height="3.17" transform="translate(-43.37 41.88) rotate(-10)"/><rect class="cls-369" x="87" y="270.32" width="262.42" height="3.17" transform="matrix(0.98, -0.17, 0.17, 0.98, -43.9, 42.02)"/><rect class="cls-236" x="87.56" y="273.44" width="262.42" height="3.17" transform="translate(-44.43 42.17) rotate(-10)"/><rect class="cls-237" x="88.11" y="276.56" width="262.42" height="3.17" transform="translate(-44.97 42.31) rotate(-10)"/><rect class="cls-238" x="88.66" y="279.69" width="262.42" height="3.17" transform="translate(-45.5 42.45) rotate(-10)"/><rect class="cls-239" x="89.21" y="282.81" width="262.42" height="3.17" transform="translate(-46.04 42.6) rotate(-10)"/><rect class="cls-240" x="89.76" y="285.94" width="262.42" height="3.17" transform="translate(-46.57 42.74) rotate(-10)"/><rect class="cls-241" x="90.31" y="289.06" width="262.42" height="3.17" transform="translate(-47.1 42.88) rotate(-10)"/><rect class="cls-242" x="90.86" y="292.18" width="262.42" height="3.17" transform="translate(-47.64 43.03) rotate(-10)"/><rect class="cls-243" x="91.41" y="295.31" width="262.42" height="3.17" transform="translate(-48.17 43.17) rotate(-10)"/><rect class="cls-244" x="91.96" y="298.43" width="262.42" height="3.17" transform="translate(-48.71 43.31) rotate(-10)"/><rect class="cls-370" x="92.51" y="301.55" width="262.42" height="3.17" transform="translate(-49.24 43.45) rotate(-10)"/><polygon class="cls-246" points="353.21 281.92 353.4 282.95 353.4 285.11 95.33 330.61 94.78 327.49 353.21 281.92"/><polygon class="cls-247" points="353.4 288.33 95.88 333.73 95.33 330.61 353.4 285.11 353.4 288.33"/><polygon class="cls-248" points="353.4 291.55 96.43 336.86 95.88 333.73 353.4 288.33 353.4 291.55"/><polygon class="cls-249" points="353.4 294.77 96.98 339.98 96.43 336.86 353.4 291.55 353.4 294.77"/><polygon class="cls-250" points="353.4 297.99 97.53 343.1 96.98 339.98 353.4 294.77 353.4 297.99"/><polygon class="cls-250" points="99.08 351.89 97.53 343.1 353.4 297.99 353.4 351.89 99.08 351.89"/></g></svg>\ No newline at end of filediff --git a/apps/desktop/src/components/connection/ConnectionDialog.vue b/apps/desktop/src/components/connection/ConnectionDialog.vueindex 3a952293df..ff6f8ab153 100644--- a/apps/desktop/src/components/connection/ConnectionDialog.vue+++ b/apps/desktop/src/components/connection/ConnectionDialog.vue@@ -281,6 +281,7 @@ const driverProfiles: Record<icon: "opengauss",},gaussdb: { type: "gaussdb", port: 5432, user: "gaussdb", label: "GaussDB", icon: "gaussdb" },+ kwdb: { type: "kwdb", port: 26257, user: "root", label: "KWDB", icon: "kwdb" },kingbase: { type: "kingbase", port: 54321, user: "system", label: "KingBase", icon: "kingbase" },highgo: { type: "highgo", port: 5866, user: "highgo", label: "瀚高 HighGo", icon: "highgo" },yashandb: { type: "yashandb", port: 1688, user: "sys", label: "崖山 YashanDB", icon: "yashandb" },@@ -532,6 +533,7 @@ const sshPathSegments = computed(() => {function defaultDatabaseForProfile() {if (form.value.db_type === "redshift") return "dev";if (form.value.db_type === "gaussdb") return "postgres";+ if (form.value.db_type === "kwdb") return "defaultdb";if (selectedType.value === "cockroachdb") return "defaultdb";if (form.value.db_type === "highgo") return "highgo";if (form.value.db_type === "yashandb") return "yasdb";@@ -580,6 +582,7 @@ const iconTypeMap: Record<string, string> = {gbase: "gbase",opengauss: "opengauss",gaussdb: "gaussdb",+ kwdb: "kwdb",kingbase: "kingbase",highgo: "highgo",yashandb: "yashandb",@@ -625,6 +628,7 @@ const dbOptions = [{ value: "mariadb", label: "MariaDB" },{ value: "dm", label: "DM (Dameng)" },{ value: "gaussdb", label: "GaussDB" },+ { value: "kwdb", label: "KWDB" },{ value: "tidb", label: "TiDB" },{ value: "oceanbase", label: "OceanBase" },{ value: "goldendb", label: "GoldenDB" },@@ -710,6 +714,7 @@ const tlsCapableDatabaseTypes = new Set<DatabaseType>(["postgres","redshift","gaussdb",+ "kwdb","opengauss","redis","clickhouse",@@ -742,7 +747,7 @@ const mysqlClientKeyPath = computed({form.value.url_params = setUrlParam(next, "ssl-key", value);},});-const nativePostgresTlsDatabaseTypes = new Set<DatabaseType>(["postgres", "redshift", "gaussdb", "opengauss"]);+const nativePostgresTlsDatabaseTypes = new Set<DatabaseType>(["postgres", "redshift", "gaussdb", "kwdb", "opengauss"]);const supportsPostgresTlsOptions = computed(() => nativePostgresTlsDatabaseTypes.has(form.value.db_type));const postgresTlsMode = computed({get: () => {diff --git a/apps/desktop/src/components/icons/DatabaseIcon.vue b/apps/desktop/src/components/icons/DatabaseIcon.vueindex 236f0edcc1..b460d8502b 100644--- a/apps/desktop/src/components/icons/DatabaseIcon.vue+++ b/apps/desktop/src/components/icons/DatabaseIcon.vue@@ -29,6 +29,7 @@ const assetIcons: Record<string, string> = {oceanbase: "oceanbase",opengauss: "opengauss",gaussdb: "gaussdb",+ kwdb: "kwdb",kingbase: "kingbase",highgo: "highgo.png",goldendb: "goldendb.png",diff --git a/apps/desktop/src/components/layout/ContentArea.vue b/apps/desktop/src/components/layout/ContentArea.vueindex 7425c62612..f0c206a417 100644--- a/apps/desktop/src/components/layout/ContentArea.vue+++ b/apps/desktop/src/components/layout/ContentArea.vue@@ -156,6 +156,7 @@ const activeSqlFormatDialect = computed<SqlFormatDialect>(() => {case "mysql":return "mysql";case "postgres":+ case "kwdb":return "postgres";case "sqlite":case "rqlite":@@ -168,7 +169,8 @@ const activeSqlFormatDialect = computed<SqlFormatDialect>(() => {});const editorDialect = computed<"mysql" | "postgres" | "sqlserver">(() => {- if (activeEffectiveDatabaseType.value === "postgres") return "postgres";+ if (activeEffectiveDatabaseType.value === "postgres" || activeEffectiveDatabaseType.value === "kwdb")+ return "postgres";if (activeEffectiveDatabaseType.value === "sqlserver") return "sqlserver";return "mysql";});diff --git a/apps/desktop/src/components/objects/ObjectBrowser.vue b/apps/desktop/src/components/objects/ObjectBrowser.vueindex 3f263eafeb..40317da3d5 100644--- a/apps/desktop/src/components/objects/ObjectBrowser.vue+++ b/apps/desktop/src/components/objects/ObjectBrowser.vue@@ -181,6 +181,7 @@ const sourceDialect = computed<"mysql" | "postgres" | "sqlserver">(() => {if (effectiveDatabaseType.value === "postgres" ||effectiveDatabaseType.value === "gaussdb" ||+ effectiveDatabaseType.value === "kwdb" ||effectiveDatabaseType.value === "opengauss")return "postgres";@@ -192,10 +193,12 @@ const sourceFormatDialect = computed<SqlFormatDialect>(() => {case "mysql":case "postgres":case "sqlite":- case "rqlite":case "sqlserver":return effectiveDatabaseType.value;+ case "rqlite":+ return "sqlite";case "gaussdb":+ case "kwdb":case "opengauss":return "postgres";default:diff --git a/apps/desktop/src/components/structure/TableStructureEditor.vue b/apps/desktop/src/components/structure/TableStructureEditor.vueindex d75dd5343c..51a00e94c8 100644--- a/apps/desktop/src/components/structure/TableStructureEditor.vue+++ b/apps/desktop/src/components/structure/TableStructureEditor.vue@@ -307,6 +307,7 @@ function isPostgresIdentityType(dbType: string | undefined): boolean {return (dbType === "postgres" ||dbType === "gaussdb" ||+ dbType === "kwdb" ||dbType === "opengauss" ||dbType === "highgo" ||dbType === "vastbase" ||diff --git a/apps/desktop/src/lib/connectionPresentation.ts b/apps/desktop/src/lib/connectionPresentation.tsindex 0e75534d22..1de3c97e77 100644--- a/apps/desktop/src/lib/connectionPresentation.ts+++ b/apps/desktop/src/lib/connectionPresentation.ts@@ -92,6 +92,7 @@ export function connectionUrlPlaceholder(dbType: DatabaseType): string {case "postgres":case "gaussdb":+ case "kwdb":case "yashandb":case "redshift":return "postgresql://user:password@host:port/database";diff --git a/apps/desktop/src/lib/connectionUrl.ts b/apps/desktop/src/lib/connectionUrl.tsindex 26504da5f3..e7921c37f7 100644--- a/apps/desktop/src/lib/connectionUrl.ts+++ b/apps/desktop/src/lib/connectionUrl.ts@@ -41,6 +41,7 @@ const SCHEME_PROFILES: Record<string, ConnectionProfile> = {dm: { type: "dameng", profile: "dm", label: "DM (Dameng)", defaultPort: 5236 },dameng: { type: "dameng", profile: "dm", label: "DM (Dameng)", defaultPort: 5236 },gaussdb: { type: "gaussdb", profile: "gaussdb", label: "GaussDB", defaultPort: 5432 },+ kwdb: { type: "kwdb", profile: "kwdb", label: "KWDB", defaultPort: 26257 },gbase: { type: "gbase", profile: "gbase", label: "GBase", defaultPort: 5258 },"gbasedbt-sqli": { type: "gbase", profile: "gbase8s", label: "GBase 8s", defaultPort: 9088 },yashandb: { type: "yashandb", profile: "yashandb", label: "YashanDB", defaultPort: 1688 },@@ -143,7 +144,7 @@ function urlParamsRequireTls(dbType: DatabaseType, params: string): boolean {return sslMode === "required" || sslMode === "require" || sslMode === "verify_ca" || sslMode === "verify_identity";}- if (dbType === "postgres" || dbType === "redshift") {+ if (dbType === "postgres" || dbType === "redshift" || dbType === "kwdb") {const sslMode = (queryParamValue(params, "sslmode") || "").toLowerCase();return sslMode === "require" || sslMode === "verify-ca" || sslMode === "verify-full";}diff --git a/apps/desktop/src/lib/databaseCapabilitySets.ts b/apps/desktop/src/lib/databaseCapabilitySets.tsindex c3500588d7..723d93849d 100644--- a/apps/desktop/src/lib/databaseCapabilitySets.ts+++ b/apps/desktop/src/lib/databaseCapabilitySets.ts@@ -7,6 +7,7 @@ export const SCHEMA_AWARE_TYPES = new Set<DatabaseType>(["redshift","dameng","gaussdb",+ "kwdb","kingbase","highgo","vastbase",@@ -43,6 +44,7 @@ export const DIAGRAM_SUPPORTED_TYPES = new Set<DatabaseType>(["redshift","dameng","gaussdb",+ "kwdb","kingbase","highgo","vastbase",@@ -75,6 +77,7 @@ export const DATABASE_SEARCH_SUPPORTED_TYPES = new Set<DatabaseType>(["clickhouse","dameng","gaussdb",+ "kwdb","kingbase","highgo","vastbase",@@ -120,6 +123,7 @@ export const TABLE_IMPORT_SUPPORTED_TYPES = new Set<DatabaseType>(["redshift","dameng","gaussdb",+ "kwdb","kingbase","highgo","vastbase",@@ -142,6 +146,7 @@ export const TABLE_STRUCTURE_SUPPORTED_TYPES = new Set<DatabaseType>(["redshift","dameng","gaussdb",+ "kwdb","kingbase","highgo","vastbase",@@ -162,6 +167,7 @@ export const CREATE_DATABASE_SUPPORTED_TYPES = new Set<DatabaseType>(["oracle","dameng","gaussdb",+ "kwdb","opengauss","oceanbase-oracle","doris",@@ -179,6 +185,7 @@ export const FIELD_LINEAGE_SUPPORTED_TYPES = new Set<DatabaseType>(["redshift","dameng","gaussdb",+ "kwdb","opengauss","oceanbase-oracle",]);@@ -199,6 +206,7 @@ export const TREE_SCHEMA_TYPES = new Set<DatabaseType>(["sqlserver","db2","gaussdb",+ "kwdb","kingbase","highgo","vastbase",@@ -222,7 +230,7 @@ export const TREE_SCHEMA_TYPES = new Set<DatabaseType>([export const DATABASE_OBJECT_TREE_TYPES = new Set<DatabaseType>(["jdbc"]);-export const PG_LIKE_STRUCTURE_TYPES = new Set<DatabaseType>(["postgres", "redshift", "gaussdb", "opengauss"]);+export const PG_LIKE_STRUCTURE_TYPES = new Set<DatabaseType>(["postgres", "redshift", "gaussdb", "kwdb", "opengauss"]);export const AGENT_DRIVER_TYPES = new Set<DatabaseType>(["dameng",@@ -270,6 +278,7 @@ export const TRANSFER_SQL_TYPES = new Set<DatabaseType>(["duckdb","dameng","gaussdb",+ "kwdb","opengauss","oceanbase-oracle",]);@@ -284,6 +293,7 @@ export const DIAGRAM_SQL_TYPES = new Set<DatabaseType>(["redshift","dameng","gaussdb",+ "kwdb","opengauss","oceanbase-oracle",]);diff --git a/apps/desktop/src/lib/databaseTableDataCapabilities.ts b/apps/desktop/src/lib/databaseTableDataCapabilities.tsindex 7aa80195fd..b2ce37035d 100644--- a/apps/desktop/src/lib/databaseTableDataCapabilities.ts+++ b/apps/desktop/src/lib/databaseTableDataCapabilities.ts@@ -58,6 +58,7 @@ const NAVICAT_STYLE_TABLE_DATA_TYPES = new Set<DatabaseType>(["redshift","dameng","gaussdb",+ "kwdb","kingbase","highgo","vastbase",diff --git a/apps/desktop/src/lib/dbeaverImport.ts b/apps/desktop/src/lib/dbeaverImport.tsindex a966d3510e..d3cb88a528 100644--- a/apps/desktop/src/lib/dbeaverImport.ts+++ b/apps/desktop/src/lib/dbeaverImport.ts@@ -48,6 +48,7 @@ const profileMap: Record<string, ConnectionProfile> = {dameng: { dbType: "dameng", profile: "dm", label: "DM (Dameng)", port: 5236, user: "SYSDBA" },dm: { dbType: "dameng", profile: "dm", label: "DM (Dameng)", port: 5236, user: "SYSDBA" },gaussdb: { dbType: "gaussdb", profile: "gaussdb", label: "GaussDB", port: 5432, user: "gaussdb" },+ kwdb: { dbType: "kwdb", profile: "kwdb", label: "KWDB", port: 26257, user: "root" },opengauss: { dbType: "gaussdb", profile: "opengauss", label: "openGauss", port: 5432, user: "gaussdb" },};diff --git a/apps/desktop/src/lib/objectRenameSql.ts b/apps/desktop/src/lib/objectRenameSql.tsindex eb7205fc0d..233daeb42a 100644--- a/apps/desktop/src/lib/objectRenameSql.ts+++ b/apps/desktop/src/lib/objectRenameSql.ts@@ -15,6 +15,7 @@ const postgresLikeRenameTypes = new Set<DatabaseType>(["postgres","redshift","gaussdb",+ "kwdb","kingbase","highgo","vastbase",diff --git a/apps/desktop/src/lib/objectSourceEditor.ts b/apps/desktop/src/lib/objectSourceEditor.tsindex e3c9c531b7..7fac0cc876 100644--- a/apps/desktop/src/lib/objectSourceEditor.ts+++ b/apps/desktop/src/lib/objectSourceEditor.ts@@ -19,6 +19,7 @@ const postgresLikeRoutineRenameTypes = new Set<DatabaseType>(["postgres","redshift","gaussdb",+ "kwdb","kingbase","highgo","vastbase",diff --git a/apps/desktop/src/lib/tableStructureCapabilities.ts b/apps/desktop/src/lib/tableStructureCapabilities.tsindex 2fb2eee386..d388f7dc4b 100644--- a/apps/desktop/src/lib/tableStructureCapabilities.ts+++ b/apps/desktop/src/lib/tableStructureCapabilities.ts@@ -216,6 +216,7 @@ const capabilityByType: Partial<Record<DatabaseType, TableStructureCapabilities>sundb: mysqlCapabilities,postgres: postgresCapabilities,gaussdb: postgresCapabilities,+ kwdb: postgresCapabilities,opengauss: postgresCapabilities,redshift: redshiftCapabilities,highgo: postgresCapabilities,diff --git a/apps/desktop/src/lib/tableStructureEditorState.ts b/apps/desktop/src/lib/tableStructureEditorState.tsindex c5963b5795..f1528643e8 100644--- a/apps/desktop/src/lib/tableStructureEditorState.ts+++ b/apps/desktop/src/lib/tableStructureEditorState.ts@@ -237,6 +237,7 @@ const DATA_TYPE_OPTION_ALIASES: Partial<Record<DatabaseType, string>> = {goldendb: "mysql",sundb: "mysql",gaussdb: "postgres",+ kwdb: "postgres",opengauss: "postgres",redshift: "postgres",highgo: "postgres",@@ -298,6 +299,7 @@ export function parseExtraToColumnExtra(extra: string | null | undefined, databa} else if (databaseType === "postgres" ||databaseType === "gaussdb" ||+ databaseType === "kwdb" ||databaseType === "opengauss" ||databaseType === "highgo" ||databaseType === "vastbase" ||@@ -405,6 +407,7 @@ function isTemporalPrecisionType(dbType: DatabaseType | undefined, baseType: strreturn ["time", "datetime", "timestamp"].includes(normalized);case "postgres":case "gaussdb":+ case "kwdb":case "opengauss":case "highgo":case "vastbase":diff --git a/apps/desktop/src/lib/visibleDatabases.ts b/apps/desktop/src/lib/visibleDatabases.tsindex 914c25eef0..f2694baae2 100644--- a/apps/desktop/src/lib/visibleDatabases.ts+++ b/apps/desktop/src/lib/visibleDatabases.ts@@ -8,6 +8,7 @@ const SYSTEM_DATABASE_RULES: Partial<Record<DatabaseType, ReadonlySet<string>>>gbase: new Set(["information_schema", "mysql", "performance_schema", "sys"]),postgres: new Set(["template0", "template1"]),gaussdb: new Set(["template0", "template1"]),+ kwdb: new Set(["template0", "template1"]),opengauss: new Set(["template0", "template1"]),kingbase: new Set(["template0", "template1"]),highgo: new Set(["template0", "template1"]),diff --git a/apps/desktop/src/stores/connectionStore.ts b/apps/desktop/src/stores/connectionStore.tsindex d1814d86e6..ede039d33f 100644--- a/apps/desktop/src/stores/connectionStore.ts+++ b/apps/desktop/src/stores/connectionStore.ts@@ -241,6 +241,7 @@ export const useConnectionStore = defineStore("connection", () => {redshift: "Redshift",dameng: "DM (Dameng)",gaussdb: "GaussDB",+ kwdb: "KWDB",kingbase: "KingBase",highgo: "瀚高 HighGo",yashandb: "崖山 YashanDB",@@ -264,6 +265,8 @@ export const useConnectionStore = defineStore("connection", () => {let dbType = config.db_type;if ((profile === "gaussdb" || profile === "opengauss") && dbType === "postgres") {dbType = "gaussdb" as ConnectionConfig["db_type"];+ } else if (profile === "kwdb" && dbType === "postgres") {+ dbType = "kwdb" as ConnectionConfig["db_type"];} else if (profile === "redshift" && dbType === "postgres") {dbType = "redshift" as ConnectionConfig["db_type"];} else if (profile === "kingbase" && dbType === "postgres") {diff --git a/apps/desktop/src/stores/queryStore.ts b/apps/desktop/src/stores/queryStore.tsindex d7ee4f10f8..b2ca689621 100644--- a/apps/desktop/src/stores/queryStore.ts+++ b/apps/desktop/src/stores/queryStore.ts@@ -689,7 +689,7 @@ export const useQueryStore = defineStore("query", () => {const dbType = conn?.db_type || "";let schema = analysis.schema || tab.schema;if (!schema) {- if (dbType === "postgres") schema = "public";+ if (dbType === "postgres" || dbType === "kwdb") schema = "public";else schema = "";}const metadataSchema =diff --git a/apps/desktop/src/types/database.ts b/apps/desktop/src/types/database.tsindex c43b3ea047..168da867f5 100644--- a/apps/desktop/src/types/database.ts+++ b/apps/desktop/src/types/database.ts@@ -19,6 +19,7 @@ export type DatabaseType =| "highgo"| "vastbase"| "goldendb"+ | "kwdb"| "yashandb"| "databricks"| "saphana"diff --git a/crates/dbx-core/assets/database-drivers.manifest.json b/crates/dbx-core/assets/database-drivers.manifest.jsonindex 521c625baa..098691366d 100644--- a/crates/dbx-core/assets/database-drivers.manifest.json+++ b/crates/dbx-core/assets/database-drivers.manifest.json@@ -210,6 +210,16 @@"skipTcpProbe": false,"defaultPort": 8000},+ {+ "dbType": "kwdb",+ "label": "KWDB",+ "runtimeMode": "native",+ "mcpMode": "direct",+ "singleConnectionPool": false,+ "metadataConnectionScoped": false,+ "skipTcpProbe": false,+ "defaultPort": 26257+ },{"dbType": "yashandb","label": "崖山 YashanDB",diff --git a/crates/dbx-core/src/connection.rs b/crates/dbx-core/src/connection.rsindex 7c9ffd3c1b..069d689ae3 100644--- a/crates/dbx-core/src/connection.rs+++ b/crates/dbx-core/src/connection.rs@@ -329,9 +329,11 @@ impl AppState {};PoolKind::Mysql(pool, MysqlMode::Bare)}- DatabaseType::Postgres | DatabaseType::Redshift | DatabaseType::Gaussdb | DatabaseType::OpenGauss => {- PoolKind::Postgres(db::postgres::connect(&url, connect_timeout).await?)- }+ DatabaseType::Postgres+ | DatabaseType::Redshift+ | DatabaseType::Gaussdb+ | DatabaseType::Kwdb+ | DatabaseType::OpenGauss => PoolKind::Postgres(db::postgres::connect(&url, connect_timeout).await?),DatabaseType::Sqlite => {let extensions = db::sqlite::sqlite_extension_specs_from_url_params(db_config.url_params.as_deref()).into_iter()@@ -1011,9 +1013,10 @@ fn external_driver_connect_timeout(config: &ConnectionConfig) -> std::time::Durafn native_postgres_url_config(config: &ConnectionConfig) -> Option<ConnectionConfig> {match config.db_type {- DatabaseType::Gaussdb | DatabaseType::OpenGauss => {+ DatabaseType::Gaussdb | DatabaseType::Kwdb | DatabaseType::OpenGauss => {let mut normalized = config.clone();- if config.db_type == DatabaseType::Gaussdb {+ normalized.database = normalized.effective_database().map(str::to_string);+ if matches!(config.db_type, DatabaseType::Gaussdb | DatabaseType::Kwdb) {let params = normalized.url_params.as_deref().unwrap_or("").trim().trim_start_matches('?');if !params.to_lowercase().contains("sslmode=") {normalized.url_params = Some(if params.is_empty() {@@ -1124,6 +1127,7 @@ mod tests {use crate::agent_manager::{AgentState, JavaRuntimeConfig, JavaRuntimeMode, DEFAULT_JRE_KEY};use crate::db;use crate::models::connection::{default_connect_timeout_secs, ConnectionConfig, DatabaseType, ProxyType};+ use crate::query;use crate::schema;use crate::storage::Storage;@@ -1613,6 +1617,39 @@ mod tests {);}+ #[test]+ fn kwdb_endpoint_url_uses_postgres_scheme_for_native_driver() {+ let mut config = mysql_config(None);+ config.db_type = DatabaseType::Kwdb;+ config.username = "root".to_string();+ config.password = "secret".to_string();+ config.port = 26257;++ assert_eq!(+ connection_url_for_endpoint(&config, &config.host, config.port),+ "postgres://root:[email protected]:26257/defaultdb?sslmode=disable"+ );+ assert_eq!(+ redacted_connection_url_for_endpoint(&config, &config.host, config.port),+ "postgres://127.0.0.1:26257/defaultdb?sslmode=disable"+ );+ }++ #[test]+ fn kwdb_endpoint_url_keeps_explicit_sslmode() {+ let mut config = mysql_config(None);+ config.db_type = DatabaseType::Kwdb;+ config.username = "root".to_string();+ config.password = "secret".to_string();+ config.port = 26257;+ config.url_params = Some("sslmode=require&application_name=dbx".to_string());++ assert_eq!(+ connection_url_for_endpoint(&config, &config.host, config.port),+ "postgres://root:[email protected]:26257/defaultdb?sslmode=require&application_name=dbx"+ );+ }+#[test]fn opengauss_endpoint_url_uses_postgres_scheme_for_native_driver() {let mut config = mysql_config(Some("postgres"));@@ -1739,6 +1776,7 @@ mod tests {DatabaseType::ClickHouse,DatabaseType::SqlServer,DatabaseType::Elasticsearch,+ DatabaseType::Kwdb,] {let mut config = mysql_config(Some("app"));config.db_type = db_type;@@ -1933,4 +1971,121 @@ mod tests {)).await;}++ #[tokio::test]+ #[ignore = "requires a reachable KWDB instance via environment variables"]+ async fn live_kwdb_native_connection_succeeds() {+ let host = std::env::var("DBX_TEST_KWDB_HOST").expect("DBX_TEST_KWDB_HOST not set");+ let port = std::env::var("DBX_TEST_KWDB_PORT")+ .expect("DBX_TEST_KWDB_PORT not set")+ .parse::<u16>()+ .expect("DBX_TEST_KWDB_PORT should be a u16");+ let username = std::env::var("DBX_TEST_KWDB_USER").unwrap_or_else(|_| "root".to_string());+ let password = std::env::var("DBX_TEST_KWDB_PASSWORD").unwrap_or_default();+ let database = std::env::var("DBX_TEST_KWDB_DATABASE").unwrap_or_else(|_| "defaultdb".to_string());+ let url_params = std::env::var("DBX_TEST_KWDB_URL_PARAMS").unwrap_or_else(|_| "sslmode=disable".to_string());++ let mut config = mysql_config(Some(&database));+ config.id = "kwdb-live".to_string();+ config.db_type = DatabaseType::Kwdb;+ config.host = host;+ config.port = port;+ config.username = username;+ config.password = password;+ config.url_params = Some(url_params);++ let (state, dir) = test_app_state().await;+ state.configs.write().await.insert(config.id.clone(), config);+ let pool_key = state.get_or_create_pool("kwdb-live", None).await.unwrap();+ let pool = {+ let connections = state.connections.read().await;+ match connections.get(&pool_key).expect("KWDB pool should be created") {+ PoolKind::Postgres(pool) => pool.clone(),+ _ => panic!("KWDB should use the PostgreSQL pool path"),+ }+ };+ let result = query::execute_sql_statement(+ &state,+ "kwdb-live",+ &database,+ "SELECT current_database(), current_schema()",+ None,+ None,+ )+ .await+ .unwrap_or_else(|err| panic!("failed to query live KWDB: {err}"));+ assert_eq!(result.rows.len(), 1);+ let database_column_index = result+ .columns+ .iter()+ .position(|column| column == "current_database")+ .expect("current_database column should be present");+ assert_eq!(result.rows[0].get(database_column_index).and_then(|value| value.as_str()), Some(database.as_str()));+ let databases = schema::list_databases_core(&state, "kwdb-live").await.unwrap();+ assert!(databases.iter().any(|database| database.name == "defaultdb"));+ let test_schema = "dbx_kwdb_live";+ db::postgres::execute_query(&pool, &format!("DROP SCHEMA IF EXISTS {test_schema} CASCADE"))+ .await+ .unwrap_or_else(|err| panic!("failed to clean KWDB test schema: {err}"));+ query::execute_sql_statement(+ &state,+ "kwdb-live",+ &database,+ &format!("CREATE SCHEMA {test_schema}"),+ None,+ None,+ )+ .await+ .unwrap_or_else(|err| panic!("failed to create KWDB test schema: {err}"));+ query::execute_sql_statement(+ &state,+ "kwdb-live",+ &database,+ "CREATE TABLE devices (id INT PRIMARY KEY, name STRING, active BOOL)",+ Some(test_schema),+ None,+ )+ .await+ .unwrap_or_else(|err| panic!("failed to create KWDB test table: {err}"));+ query::execute_sql_statement(+ &state,+ "kwdb-live",+ &database,+ "INSERT INTO devices (id, name, active) VALUES (1, 'meter-a', true)",+ Some(test_schema),+ None,+ )+ .await+ .unwrap_or_else(|err| panic!("failed to insert KWDB test row: {err}"));+ let query_result = query::execute_sql_statement(+ &state,+ "kwdb-live",+ &database,+ "SELECT name, active FROM devices WHERE id = 1",+ Some(test_schema),+ None,+ )+ .await+ .unwrap_or_else(|err| panic!("failed to query KWDB test row: {err}"));+ assert_eq!(query_result.rows.len(), 1);+ assert_eq!(query_result.rows[0].first().and_then(|value| value.as_str()), Some("meter-a"));++ let schemas = schema::list_schemas_core(&state, "kwdb-live", &database).await.unwrap();+ assert!(schemas.iter().any(|schema| schema == test_schema));+ let tables = schema::list_tables_core(&state, "kwdb-live", &database, test_schema, None, None).await.unwrap();+ assert!(tables.iter().any(|table| table.name == "devices" && table.table_type == "BASE TABLE"));+ let columns = schema::get_columns_core(&state, "kwdb-live", &database, test_schema, "devices").await.unwrap();+ let id_column = columns.iter().find(|column| column.name == "id").expect("id column should be listed");+ assert!(id_column.data_type.to_lowercase().contains("int"));+ let name_column = columns.iter().find(|column| column.name == "name").expect("name column should be listed");+ assert!(name_column.data_type.to_lowercase().contains("text"));+ let active_column =+ columns.iter().find(|column| column.name == "active").expect("active column should be listed");+ assert!(active_column.data_type.to_lowercase().contains("bool"));+ db::postgres::execute_query(&pool, &format!("DROP SCHEMA {test_schema} CASCADE"))+ .await+ .unwrap_or_else(|err| panic!("failed to drop KWDB test schema: {err}"));+ pool.close();+ let _ = std::fs::remove_dir_all(dir);+ }}diff --git a/crates/dbx-core/src/data_grid_sql.rs b/crates/dbx-core/src/data_grid_sql.rsindex 7be2821414..476b98fc52 100644--- a/crates/dbx-core/src/data_grid_sql.rs+++ b/crates/dbx-core/src/data_grid_sql.rs@@ -1242,6 +1242,7 @@ fn uses_keyless_row_predicate(database_type: Option<DatabaseType>) -> bool {| DatabaseType::Redshift| DatabaseType::Dameng| DatabaseType::Gaussdb+ | DatabaseType::Kwdb| DatabaseType::Kingbase| DatabaseType::Highgo| DatabaseType::Vastbasediff --git a/crates/dbx-core/src/db_admin_sql.rs b/crates/dbx-core/src/db_admin_sql.rsindex c96c98d64d..b8b664b526 100644--- a/crates/dbx-core/src/db_admin_sql.rs+++ b/crates/dbx-core/src/db_admin_sql.rs@@ -174,6 +174,7 @@ pub fn build_drop_table_child_object_sql(options: DropTableChildObjectSqlOptionsSome(DatabaseType::Postgres| DatabaseType::Gaussdb+ | DatabaseType::Kwdb| DatabaseType::OpenGauss| DatabaseType::Highgo| DatabaseType::Vastbase@@ -203,6 +204,7 @@ pub fn build_drop_table_child_object_sql(options: DropTableChildObjectSqlOptionsSome(DatabaseType::Postgres| DatabaseType::Gaussdb+ | DatabaseType::Kwdb| DatabaseType::OpenGauss| DatabaseType::Highgo| DatabaseType::Vastbase@@ -254,7 +256,7 @@ pub fn build_create_schema_sql(options: SchemaNameSqlOptions) -> String {pub fn build_drop_schema_sql(options: SchemaNameSqlOptions) -> String {let schema = quote_table_identifier(options.database_type, &options.name);- if matches!(options.database_type, Some(DatabaseType::Postgres | DatabaseType::Gaussdb)) {+ if matches!(options.database_type, Some(DatabaseType::Postgres | DatabaseType::Gaussdb | DatabaseType::Kwdb)) {format!("DROP SCHEMA {schema} CASCADE;")} else {format!("DROP SCHEMA {schema};")@@ -359,6 +361,7 @@ fn is_postgres_like_rename(database_type: DatabaseType) -> bool {DatabaseType::Postgres| DatabaseType::Redshift| DatabaseType::Gaussdb+ | DatabaseType::Kwdb| DatabaseType::Kingbase| DatabaseType::Highgo| DatabaseType::Vastbase@@ -372,7 +375,11 @@ fn is_oracle_like_rename(database_type: DatabaseType) -> bool {fn is_postgres_like_structure_copy(database_type: DatabaseType) -> bool {matches!(database_type,- DatabaseType::Postgres | DatabaseType::Redshift | DatabaseType::Gaussdb | DatabaseType::OpenGauss+ DatabaseType::Postgres+ | DatabaseType::Redshift+ | DatabaseType::Gaussdb+ | DatabaseType::Kwdb+ | DatabaseType::OpenGauss)}@@ -564,7 +571,7 @@ mod tests {);assert_eq!(build_drop_schema_sql(SchemaNameSqlOptions {- database_type: Some(DatabaseType::Gaussdb),+ database_type: Some(DatabaseType::Kwdb),name: "analytics".to_string(),}),"DROP SCHEMA \"analytics\" CASCADE;"@@ -654,7 +661,7 @@ mod tests {);assert_eq!(build_duplicate_table_structure_sql(DuplicateTableStructureSqlOptions {- database_type: Some(DatabaseType::Postgres),+ database_type: Some(DatabaseType::Kwdb),schema: Some("public".to_string()),source_name: "users".to_string(),target_name: "users_copy".to_string(),diff --git a/crates/dbx-core/src/models/connection.rs b/crates/dbx-core/src/models/connection.rsindex 1ebc236782..399b5a0c95 100644--- a/crates/dbx-core/src/models/connection.rs+++ b/crates/dbx-core/src/models/connection.rs@@ -193,6 +193,7 @@ pub enum DatabaseType {Vastbase,Goldendb,Gaussdb,+ Kwdb,Yashandb,Databricks,#[serde(rename = "saphana")]@@ -304,6 +305,7 @@ impl ConnectionConfig {DatabaseType::ClickHouse => Some("default"),DatabaseType::Rqlite => Some("main"),DatabaseType::Gaussdb | DatabaseType::OpenGauss => Some("postgres"),+ DatabaseType::Kwdb => Some("defaultdb"),DatabaseType::Kingbase | DatabaseType::Vastbase => Some("postgres"),DatabaseType::Highgo => Some("highgo"),DatabaseType::Yashandb => Some("yasdb"),@@ -424,6 +426,7 @@ impl ConnectionConfig {DatabaseType::Vastbase => format!("vastbase://{host}:{port}{db_part}"),DatabaseType::Goldendb => format!("goldendb://{host}:{port}{db_part}"),DatabaseType::Gaussdb => format!("gaussdb://{host}:{port}{db_part}"),+ DatabaseType::Kwdb => format!("kwdb://{host}:{port}{db_part}"),DatabaseType::Yashandb => format!("yashandb://{host}:{port}{db_part}"),DatabaseType::Databricks => format!("databricks://{host}:{port}{db_part}"),DatabaseType::SapHana => format!("saphana://{host}:{port}{db_part}"),@@ -549,6 +552,9 @@ impl ConnectionConfig {DatabaseType::Gaussdb => {format!("gaussdb://{}:{}@{host}:{port}{db_part}", username, password)}+ DatabaseType::Kwdb => {+ format!("kwdb://{}:{}@{host}:{port}{db_part}", username, password)+ }DatabaseType::Yashandb => {format!("yashandb://{}:{}@{host}:{port}{db_part}", username, password)}@@ -1618,6 +1624,14 @@ mod tests {assert_eq!(config.connection_url(), "gaussdb://gaussdb:[email protected]:2883/postgres");}+ #[test]+ fn kwdb_url_defaults_to_defaultdb_database() {+ let mut config = mysql_config("root", "secret", None);+ config.db_type = DatabaseType::Kwdb;++ assert_eq!(config.connection_url(), "kwdb://root:[email protected]:2883/defaultdb");+ }+#[test]fn yashandb_url_defaults_to_yasdb_database() {let mut config = mysql_config("sys", "secret", None);diff --git a/crates/dbx-core/src/object_source_sql.rs b/crates/dbx-core/src/object_source_sql.rsindex b3cecf3c2e..baddb7a21e 100644--- a/crates/dbx-core/src/object_source_sql.rs+++ b/crates/dbx-core/src/object_source_sql.rs@@ -125,8 +125,10 @@ pub fn build_executable_object_source_statements(input: EditableObjectSourceSqlIreturn Ok(vec![replace_sqlserver_create_with_create_or_alter(source)]);}- if matches!(input.database_type, DatabaseType::Postgres | DatabaseType::Gaussdb | DatabaseType::OpenGauss)- && input.object_type == ObjectSourceKind::View+ if matches!(+ input.database_type,+ DatabaseType::Postgres | DatabaseType::Gaussdb | DatabaseType::Kwdb | DatabaseType::OpenGauss+ ) && input.object_type == ObjectSourceKind::View{return Ok(vec![format!("CREATE OR REPLACE VIEW {} AS\n{}",@@ -211,6 +213,7 @@ fn is_postgres_like(database_type: DatabaseType) -> bool {DatabaseType::Postgres| DatabaseType::Redshift| DatabaseType::Gaussdb+ | DatabaseType::Kwdb| DatabaseType::OpenGauss| DatabaseType::Kingbase| DatabaseType::Highgo@@ -447,19 +450,21 @@ mod tests {}#[test]- fn opengauss_view_body_opens_as_create_or_replace_view() {- let sql = build_executable_object_source_sql(EditableObjectSourceSqlInput {- database_type: DatabaseType::OpenGauss,- object_type: ObjectSourceKind::View,- schema: Some("public".to_string()),- name: "active users".to_string(),- source: " SELECT id, name FROM users WHERE active ".to_string(),- })- .unwrap();- assert_eq!(- sql,- "CREATE OR REPLACE VIEW \"public\".\"active users\" AS\nSELECT id, name FROM users WHERE active;"- );+ fn postgres_compatible_view_body_opens_as_create_or_replace_view() {+ for database_type in [DatabaseType::OpenGauss, DatabaseType::Kwdb] {+ let sql = build_executable_object_source_sql(EditableObjectSourceSqlInput {+ database_type,+ object_type: ObjectSourceKind::View,+ schema: Some("public".to_string()),+ name: "active users".to_string(),+ source: " SELECT id, name FROM users WHERE active ".to_string(),+ })+ .unwrap();+ assert_eq!(+ sql,+ "CREATE OR REPLACE VIEW \"public\".\"active users\" AS\nSELECT id, name FROM users WHERE active;"+ );+ }}#[test]diff --git a/crates/dbx-core/src/sql_dialect.rs b/crates/dbx-core/src/sql_dialect.rsindex bf9fe11acd..b3d2ac0a04 100644--- a/crates/dbx-core/src/sql_dialect.rs+++ b/crates/dbx-core/src/sql_dialect.rs@@ -345,6 +345,7 @@ pub fn is_schema_aware(database_type: DatabaseType) -> bool {| DatabaseType::Redshift| DatabaseType::Dameng| DatabaseType::Gaussdb+ | DatabaseType::Kwdb| DatabaseType::Kingbase| DatabaseType::Highgo| DatabaseType::Vastbase@@ -408,6 +409,7 @@ mod tests {#[test]fn qualifies_schema_only_for_schema_aware_databases() {assert_eq!(qualified_table_name(Some(DatabaseType::Postgres), Some("public"), "users"), "\"public\".\"users\"");+ assert_eq!(qualified_table_name(Some(DatabaseType::Kwdb), Some("public"), "users"), "\"public\".\"users\"");assert_eq!(qualified_table_name(Some(DatabaseType::Mysql), Some("public"), "users"), "`users`");assert_eq!(qualified_table_name(Some(DatabaseType::Jdbc), Some("cbsdw_dwd"), "dwd_test_df"), "dwd_test_df");}diff --git a/crates/dbx-core/src/table_structure_sql.rs b/crates/dbx-core/src/table_structure_sql.rsindex a6b6069ca0..b730ba3fb3 100644--- a/crates/dbx-core/src/table_structure_sql.rs+++ b/crates/dbx-core/src/table_structure_sql.rs@@ -211,6 +211,7 @@ fn capabilities_for(database_type: Option<DatabaseType>) -> TableStructureCapabiSome(DatabaseType::Postgres| DatabaseType::Gaussdb+ | DatabaseType::Kwdb| DatabaseType::OpenGauss| DatabaseType::Highgo| DatabaseType::Vastbasediff --git a/crates/dbx-core/tests/database_capabilities.rs b/crates/dbx-core/tests/database_capabilities.rsindex d26af273e1..9cec252ac4 100644--- a/crates/dbx-core/tests/database_capabilities.rs+++ b/crates/dbx-core/tests/database_capabilities.rs@@ -85,6 +85,7 @@ fn classifies_agent_database_types() {assert!(!is_agent_type(&DatabaseType::Mysql));assert!(!is_agent_type(&DatabaseType::Jdbc));assert!(!is_agent_type(&DatabaseType::Gaussdb));+ assert!(!is_agent_type(&DatabaseType::Kwdb));assert!(!is_agent_type(&DatabaseType::OpenGauss));}@@ -102,6 +103,7 @@ fn identifies_single_connection_pool_types() {assert!(is_single_connection_pool(&DatabaseType::Jdbc));assert!(!is_single_connection_pool(&DatabaseType::Trino));assert!(!is_single_connection_pool(&DatabaseType::Postgres));+ assert!(!is_single_connection_pool(&DatabaseType::Kwdb));}#[test]@@ -110,6 +112,7 @@ fn identifies_metadata_connections_that_drop_database_scope() {assert!(!is_metadata_connection_scoped(&DatabaseType::Doris));assert!(!is_metadata_connection_scoped(&DatabaseType::StarRocks));assert!(!is_metadata_connection_scoped(&DatabaseType::Postgres));+ assert!(!is_metadata_connection_scoped(&DatabaseType::Kwdb));assert!(!is_metadata_connection_scoped(&DatabaseType::Oracle));}@@ -129,6 +132,7 @@ fn skips_tcp_probe_for_local_file_plugin_and_agent_types() {assert!(!skips_tcp_probe(&DatabaseType::Postgres));assert!(!skips_tcp_probe(&DatabaseType::Mysql));assert!(!skips_tcp_probe(&DatabaseType::Gaussdb));+ assert!(!skips_tcp_probe(&DatabaseType::Kwdb));assert!(!skips_tcp_probe(&DatabaseType::OpenGauss));}diff --git a/docs/content/docs/databases.cn.mdx b/docs/content/docs/databases.cn.mdxindex eb5f60d321..3668d08070 100644--- a/docs/content/docs/databases.cn.mdx+++ b/docs/content/docs/databases.cn.mdx@@ -13,10 +13,10 @@ DBX 主应用会尽量使用 Rust 原生驱动。部分数据库通过 MySQL 或| 分组 | 类型 | 说明 ||---|---|---|-| 核心 SQL 数据库 | MySQL、PostgreSQL、SQLite、DuckDB、ClickHouse、SQL Server、Oracle、Redshift、DM、GaussDB | 直接出现在 DBX 连接选择器中 |+| 核心 SQL 数据库 | MySQL、PostgreSQL、SQLite、DuckDB、ClickHouse、SQL Server、Oracle、Redshift、DM、GaussDB、KWDB | 直接出现在 DBX 连接选择器中 || 文档与键值数据库 | Redis、MongoDB、Elasticsearch | 根据数据模型使用专门浏览器或查询流程,不完全等同于关系型表格 || MySQL 兼容类型 | MariaDB、TiDB、OceanBase、Doris、SelectDB、StarRocks、GoldenDB、自定义 MySQL | 复用 MySQL 风格连接能力 |-| PostgreSQL 兼容类型 | openGauss、KingBase、HighGo、Vastbase、CockroachDB、自定义 PostgreSQL | 复用 PostgreSQL 风格连接能力 |+| PostgreSQL 兼容类型 | KWDB、openGauss、KingBase、HighGo、Vastbase、CockroachDB、自定义 PostgreSQL | 复用 PostgreSQL 风格连接能力 || 文件型数据库 | SQLite、DuckDB、Microsoft Access | 选择本地数据库文件,不填写主机和端口 || Agent/JDBC 扩展类型 | H2、Snowflake、Trino、Hive、DB2、Informix、Neo4j、Cassandra、BigQuery、Kylin、SunDB、TDengine、虚谷 XuguDB、JDBC | 功能覆盖取决于对应驱动路径 |@@ -53,6 +53,7 @@ DBX 主应用会尽量使用 Rust 原生驱动。部分数据库通过 MySQL 或| SunDB | 22000 || TDengine | 6041 || 虚谷 XuguDB | 5138 |+| KWDB | 26257 |<Callout type="info">SQLite、DuckDB、Access 和 JDBC 在不需要网络端口时,会在连接模型中保存为端口 `0`。@@ -64,14 +65,14 @@ DBX 只会在具备足够元数据和 SQL 生成能力的数据库上启用高| 功能 | 支持类型 ||---|---|-| Schema 感知树 | PostgreSQL、SQL Server、Oracle、Redshift、DM、GaussDB、KingBase、HighGo、Vastbase、JDBC、H2、Snowflake、Trino、DB2、TDengine、虚谷 XuguDB |-| ER 图 | MySQL、PostgreSQL、SQLite、SQL Server、Oracle、Redshift、DM、GaussDB、KingBase、HighGo、Vastbase、GoldenDB、Access、H2、DB2 |-| 数据库搜索 | MySQL、PostgreSQL、SQLite、SQL Server、Oracle、Redshift、DuckDB、ClickHouse、DM、GaussDB、KingBase、HighGo、Vastbase、GoldenDB、Access、H2、Snowflake、Trino、Hive、DB2、Informix、Neo4j、Cassandra、BigQuery、Kylin、SunDB、TDengine、虚谷 XuguDB |-| 表数据导入 | MySQL、PostgreSQL、SQLite、DuckDB、ClickHouse、SQL Server、Oracle、Doris、StarRocks、Redshift、DM、GaussDB、KingBase、HighGo、Vastbase、GoldenDB、Access |-| 表结构编辑器 | MySQL、PostgreSQL、SQLite、SQL Server |-| 创建数据库 | MySQL、PostgreSQL、SQL Server、ClickHouse、Oracle、DM、GaussDB、Doris、StarRocks、Redshift |-| 字段血缘 | MySQL、PostgreSQL、SQLite、SQL Server、Oracle、Redshift、DM、GaussDB |-| 数据传输 | MySQL、PostgreSQL、SQLite、SQL Server、Oracle、ClickHouse、DuckDB、DM、GaussDB |+| Schema 感知树 | PostgreSQL、SQL Server、Oracle、Redshift、DM、GaussDB、KWDB、KingBase、HighGo、Vastbase、JDBC、H2、Snowflake、Trino、DB2、TDengine、虚谷 XuguDB |+| ER 图 | MySQL、PostgreSQL、SQLite、SQL Server、Oracle、Redshift、DM、GaussDB、KWDB、KingBase、HighGo、Vastbase、GoldenDB、Access、H2、DB2 |+| 数据库搜索 | MySQL、PostgreSQL、SQLite、SQL Server、Oracle、Redshift、DuckDB、ClickHouse、DM、GaussDB、KWDB、KingBase、HighGo、Vastbase、GoldenDB、Access、H2、Snowflake、Trino、Hive、DB2、Informix、Neo4j、Cassandra、BigQuery、Kylin、SunDB、TDengine、虚谷 XuguDB |+| 表数据导入 | MySQL、PostgreSQL、SQLite、DuckDB、ClickHouse、SQL Server、Oracle、Doris、StarRocks、Redshift、DM、GaussDB、KWDB、KingBase、HighGo、Vastbase、GoldenDB、Access |+| 表结构编辑器 | MySQL、PostgreSQL、SQLite、SQL Server、KWDB |+| 创建数据库 | MySQL、PostgreSQL、SQL Server、ClickHouse、Oracle、DM、GaussDB、KWDB、Doris、StarRocks、Redshift |+| 字段血缘 | MySQL、PostgreSQL、SQLite、SQL Server、Oracle、Redshift、DM、GaussDB、KWDB |+| 数据传输 | MySQL、PostgreSQL、SQLite、SQL Server、Oracle、ClickHouse、DuckDB、DM、GaussDB、KWDB || 不支持 SQL 文件执行 | Redis、MongoDB、Elasticsearch |<Callout type="warn">@@ -82,8 +83,6 @@ DBX 只会在具备足够元数据和 SQL 生成能力的数据库上启用高大多数网络数据库支持主机、端口、用户名、密码、默认数据库、URL 参数、SSL、连接颜色、SSH 隧道和代理设置。文件型数据库会改为选择本地文件。-DBX 也可以解析常见连接 URL,例如 MySQL、PostgreSQL、Redis、MongoDB、ClickHouse、SQL Server、Oracle、Elasticsearch、DM、GaussDB、openGauss、TDengine、虚谷 XuguDB 和 Access。-### ClickHouse TLSClickHouse 连接支持 TLS 加密。创建 ClickHouse 连接时,启用 TLS 开关即可通过 HTTPS 而非 HTTP 进行连接。建议对生产环境的 ClickHouse 实例或 ClickHouse Cloud 部署启用此选项。diff --git a/docs/content/docs/databases.mdx b/docs/content/docs/databases.mdxindex ff76fa7bd0..5e52f405b3 100644--- a/docs/content/docs/databases.mdx+++ b/docs/content/docs/databases.mdx@@ -13,10 +13,10 @@ The connection dialog exposes ready-to-use profiles with default ports and drive| Group | Profiles | Notes ||---|---|---|-| Core SQL engines | MySQL, PostgreSQL, SQLite, DuckDB, ClickHouse, SQL Server, Oracle, Redshift, DM, GaussDB | Available directly in the DBX connection picker |+| Core SQL engines | MySQL, PostgreSQL, SQLite, DuckDB, ClickHouse, SQL Server, Oracle, Redshift, DM, GaussDB, KWDB | Available directly in the DBX connection picker || Document and key-value engines | Redis, MongoDB, Elasticsearch | Use dedicated browsers or query flows instead of the generic relational grid where appropriate || MySQL-compatible profiles | MariaDB, TiDB, OceanBase, Doris, SelectDB, StarRocks, GoldenDB, custom MySQL | Reuse MySQL-style connection handling where the engine speaks a compatible protocol |-| PostgreSQL-compatible profiles | openGauss, KingBase, HighGo, Vastbase, CockroachDB, custom PostgreSQL | Reuse PostgreSQL-style connection handling where the engine speaks a compatible protocol |+| PostgreSQL-compatible profiles | KWDB, openGauss, KingBase, HighGo, Vastbase, CockroachDB, custom PostgreSQL | Reuse PostgreSQL-style connection handling where the engine speaks a compatible protocol || File-based engines | SQLite, DuckDB, Microsoft Access | Choose a local database file instead of host and port || Agent/JDBC-oriented engines | H2, Snowflake, Trino, Hive, DB2, Informix, Neo4j, Cassandra, BigQuery, Kylin, SunDB, TDengine, XuguDB, JDBC | Feature coverage depends on the driver path used by that engine |@@ -53,6 +53,7 @@ The connection dialog exposes ready-to-use profiles with default ports and drive| SunDB | 22000 || TDengine | 6041 || XuguDB | 5138 |+| KWDB | 26257 |<Callout type="info">SQLite, DuckDB, Access, and JDBC profiles use port `0` in the saved connection model when a network port is not part of the connection.@@ -64,14 +65,14 @@ DBX intentionally enables advanced workflows only where the app has enough metad| Feature | Supported Types ||---|---|-| Schema-aware tree | PostgreSQL, SQL Server, Oracle, Redshift, DM, GaussDB, KingBase, HighGo, Vastbase, JDBC, H2, Snowflake, Trino, DB2, TDengine, XuguDB |-| ER diagram | MySQL, PostgreSQL, SQLite, SQL Server, Oracle, Redshift, DM, GaussDB, KingBase, HighGo, Vastbase, GoldenDB, Access, H2, DB2 |-| Database search | MySQL, PostgreSQL, SQLite, SQL Server, Oracle, Redshift, DuckDB, ClickHouse, DM, GaussDB, KingBase, HighGo, Vastbase, GoldenDB, Access, H2, Snowflake, Trino, Hive, DB2, Informix, Neo4j, Cassandra, BigQuery, Kylin, SunDB, TDengine, XuguDB |-| Table import | MySQL, PostgreSQL, SQLite, DuckDB, ClickHouse, SQL Server, Oracle, Doris, StarRocks, Redshift, DM, GaussDB, KingBase, HighGo, Vastbase, GoldenDB, Access |-| Table structure editor | MySQL, PostgreSQL, SQLite, SQL Server |-| Create database | MySQL, PostgreSQL, SQL Server, ClickHouse, Oracle, DM, GaussDB, Doris, StarRocks, Redshift |-| Field lineage | MySQL, PostgreSQL, SQLite, SQL Server, Oracle, Redshift, DM, GaussDB |-| Data transfer | MySQL, PostgreSQL, SQLite, SQL Server, Oracle, ClickHouse, DuckDB, DM, GaussDB |+| Schema-aware tree | PostgreSQL, SQL Server, Oracle, Redshift, DM, GaussDB, KWDB, KingBase, HighGo, Vastbase, JDBC, H2, Snowflake, Trino, DB2, TDengine, XuguDB |+| ER diagram | MySQL, PostgreSQL, SQLite, SQL Server, Oracle, Redshift, DM, GaussDB, KWDB, KingBase, HighGo, Vastbase, GoldenDB, Access, H2, DB2 |+| Database search | MySQL, PostgreSQL, SQLite, SQL Server, Oracle, Redshift, DuckDB, ClickHouse, DM, GaussDB, KWDB, KingBase, HighGo, Vastbase, GoldenDB, Access, H2, Snowflake, Trino, Hive, DB2, Informix, Neo4j, Cassandra, BigQuery, Kylin, SunDB, TDengine, XuguDB |+| Table import | MySQL, PostgreSQL, SQLite, DuckDB, ClickHouse, SQL Server, Oracle, Doris, StarRocks, Redshift, DM, GaussDB, KWDB, KingBase, HighGo, Vastbase, GoldenDB, Access |+| Table structure editor | MySQL, PostgreSQL, SQLite, SQL Server, KWDB |+| Create database | MySQL, PostgreSQL, SQL Server, ClickHouse, Oracle, DM, GaussDB, KWDB, Doris, StarRocks, Redshift |+| Field lineage | MySQL, PostgreSQL, SQLite, SQL Server, Oracle, Redshift, DM, GaussDB, KWDB |+| Data transfer | MySQL, PostgreSQL, SQLite, SQL Server, Oracle, ClickHouse, DuckDB, DM, GaussDB, KWDB || SQL file execution unavailable | Redis, MongoDB, Elasticsearch |<Callout type="warn">@@ -82,7 +83,7 @@ If a database can connect but does not appear in a feature row, that feature mayMost network databases support host, port, username, password, default database, optional URL parameters, SSL, connection color, SSH tunnel, and proxy settings. File-based engines replace host and port with a file picker.-DBX can also parse common connection URLs for engines such as MySQL, PostgreSQL, Redis, MongoDB, ClickHouse, SQL Server, Oracle, Elasticsearch, DM, GaussDB, openGauss, TDengine, XuguDB, and Access.+DBX can also parse common connection URLs for engines such as MySQL, PostgreSQL, Redis, MongoDB, ClickHouse, SQL Server, Oracle, Elasticsearch, DM, GaussDB, KWDB, openGauss, TDengine, XuguDB, and Access.### ClickHouse TLSdiff --git a/packages/app-tests/connectionUrl.test.ts b/packages/app-tests/connectionUrl.test.tsindex 7ac9d7d6d4..56d3d8f442 100644--- a/packages/app-tests/connectionUrl.test.ts+++ b/packages/app-tests/connectionUrl.test.ts@@ -17,6 +17,21 @@ test("parses postgres connection URLs", () => {});});+test("parses KWDB connection URLs", () => {+ assert.deepEqual(parseConnectionUrl("kwdb://root:[email protected]/defaultdb?sslmode=require"), {+ dbType: "kwdb",+ driverProfile: "kwdb",+ driverLabel: "KWDB",+ host: "kw.example.com",+ port: 26257,+ username: "root",+ password: "secret",+ database: "defaultdb",+ urlParams: "sslmode=require",+ ssl: true,+ });+});+test("parses mysql URLs with encoded credentials", () => {const parsed = parseConnectionUrl("mysql://root:p%[email protected]/shop?charset=utf8mb4");diff --git a/packages/app-tests/connectionUrlPlaceholder.test.ts b/packages/app-tests/connectionUrlPlaceholder.test.tsindex 13abcf1213..b7497ac66c 100644--- a/packages/app-tests/connectionUrlPlaceholder.test.ts+++ b/packages/app-tests/connectionUrlPlaceholder.test.ts@@ -8,6 +8,7 @@ const expected: Record<string, string> = {starrocks: "mysql://user:password@host:port/database",postgres: "postgresql://user:password@host:port/database",gaussdb: "postgresql://user:password@host:port/database",+ kwdb: "postgresql://user:password@host:port/database",redshift: "postgresql://user:password@host:port/database",redis: "redis://:password@host:port/0",sqlite: "sqlite:///absolute/path/to/database.db",@@ -45,6 +46,7 @@ test("mysql-family types share the same placeholder", () => {test("postgres-family types share the same placeholder", () => {const postgres = connectionUrlPlaceholder("postgres");assert.equal(connectionUrlPlaceholder("gaussdb"), postgres);+ assert.equal(connectionUrlPlaceholder("kwdb"), postgres);assert.equal(connectionUrlPlaceholder("redshift"), postgres);});diff --git a/packages/app-tests/databaseCapabilities.test.ts b/packages/app-tests/databaseCapabilities.test.tsindex dc11f39499..f29fba0ef3 100644--- a/packages/app-tests/databaseCapabilities.test.ts+++ b/packages/app-tests/databaseCapabilities.test.ts@@ -183,6 +183,14 @@ test("uses Navicat-style table editing defaults for updateable SQL table enginesrequiresTransactionalTableForExistingRows: false,transaction: true,});+ assert.deepEqual(getDatabaseCapability("kwdb").tableData, {+ insert: true,+ updateRequiresPrimaryKey: false,+ deleteRequiresPrimaryKey: false,+ keylessRowPredicate: true,+ requiresTransactionalTableForExistingRows: false,+ transaction: true,+ });});test("keeps conservative table editing defaults for unknown database types", () => {@@ -210,6 +218,7 @@ test("describes feature support through capability helpers", () => {assert.equal(supportsTableStructureEditing("oracle"), true);assert.equal(supportsTableStructureEditing("dameng"), true);assert.equal(supportsTableStructureEditing("gaussdb"), true);+ assert.equal(supportsTableStructureEditing("kwdb"), true);assert.equal(supportsTableStructureEditing("opengauss"), true);assert.equal(supportsTableStructureEditing("redshift"), true);assert.equal(supportsTableStructureEditing("clickhouse"), true);@@ -218,12 +227,15 @@ test("describes feature support through capability helpers", () => {assert.equal(supportsDatabaseCreation("clickhouse"), true);assert.equal(supportsDatabaseCreation("sqlite"), false);assert.equal(supportsFieldLineage("gaussdb"), true);+ assert.equal(supportsFieldLineage("kwdb"), true);assert.equal(supportsFieldLineage("trino"), false);assert.equal(supportsTransfer("duckdb"), true);assert.equal(supportsTransfer("hive"), false);assert.equal(supportsDriverManagement("oracle"), true);assert.equal(supportsDriverManagement("mysql"), false);+ assert.equal(supportsDriverManagement("kwdb"), false);assert.equal(usesPostgresLikeStructureCopy("gaussdb"), true);+ assert.equal(usesPostgresLikeStructureCopy("kwdb"), true);assert.equal(usesPostgresLikeStructureCopy("mysql"), false);assert.equal(supportsObjectBrowser("mysql"), true);assert.equal(supportsObjectBrowser("mongodb"), false);diff --git a/packages/app-tests/tableStructureCapabilities.test.ts b/packages/app-tests/tableStructureCapabilities.test.tsindex dbe174ab04..e12c991858 100644--- a/packages/app-tests/tableStructureCapabilities.test.ts+++ b/packages/app-tests/tableStructureCapabilities.test.ts@@ -14,7 +14,7 @@ test("sqlite-family and duckdb do not support table comments", () => {});test("postgres-like databases expose safe structure editing capabilities", () => {- for (const dbType of ["postgres", "gaussdb", "opengauss", "highgo", "vastbase", "kingbase"] as const) {+ for (const dbType of ["postgres", "gaussdb", "kwdb", "opengauss", "highgo", "vastbase", "kingbase"] as const) {const caps = getTableStructureCapabilities(dbType);assert.equal(caps.dialect, "postgres", `${dbType} should reuse postgres DDL`);assert.equal(caps.createTable, true, `${dbType} should create tables`);diff --git a/packages/mcp-server/src/index.ts b/packages/mcp-server/src/index.tsindex 945516f6b1..bb0d2de349 100644--- a/packages/mcp-server/src/index.ts+++ b/packages/mcp-server/src/index.ts@@ -46,7 +46,7 @@ function formatQueryToolResult(result: QueryResult, title?: string) {}export const DBX_CONNECTION_TYPE_DESCRIPTION =- "Database type: postgres, mysql, sqlite, rqlite, redis, duckdb, clickhouse, sqlserver, mongodb, oracle, elasticsearch, doris, starrocks, redshift, dameng, kingbase, highgo, vastbase, goldendb, gaussdb, yashandb, databricks, saphana, teradata, vertica, firebird, exasol, opengauss, oceanbase-oracle, gbase, h2, snowflake, trino, hive, db2, informix, iris, neo4j, cassandra, bigquery, kylin, sundb, tdengine, xugu, jdbc, access";+ "Database type: postgres, mysql, sqlite, rqlite, redis, duckdb, clickhouse, sqlserver, mongodb, oracle, elasticsearch, doris, starrocks, redshift, dameng, kingbase, highgo, vastbase, goldendb, gaussdb, kwdb, yashandb, databricks, saphana, teradata, vertica, firebird, exasol, opengauss, oceanbase-oracle, gbase, h2, snowflake, trino, hive, db2, informix, iris, neo4j, cassandra, bigquery, kylin, sundb, tdengine, xugu, jdbc, access";export function createDbxMcpServer(backend: Backend, options: { isWebMode?: boolean } = {}): McpServer {const isWebMode = options.isWebMode ?? !!process.env.DBX_WEB_URL;@@ -181,7 +181,7 @@ export function createDbxMcpServer(backend: Backend, options: { isWebMode?: boolconst existing = await backend.findConnection(name);if (existing) return text(`Connection "${name}" already exists.`);const FILE_BASED_TYPES = new Set(["sqlite", "duckdb", "access"]);- const DEFAULT_PORTS: Record<string, number> = { rqlite: 4001, tdengine: 6041, xugu: 5138 };+ const DEFAULT_PORTS: Record<string, number> = { kwdb: 26257, rqlite: 4001, tdengine: 6041, xugu: 5138 };const resolvedPort = port ?? DEFAULT_PORTS[db_type] ?? (FILE_BASED_TYPES.has(db_type) ? 0 : undefined);if (resolvedPort === undefined) return text("Port is required for this database type.");const config = await backend.addConnection({diff --git a/packages/node-core/src/diagnostics.ts b/packages/node-core/src/diagnostics.tsindex eb6e7cd5c5..70871f4e6a 100644--- a/packages/node-core/src/diagnostics.ts+++ b/packages/node-core/src/diagnostics.ts@@ -11,6 +11,7 @@ export const DIRECT_QUERY_TYPES = ["sqlite","rqlite","gaussdb",+ "kwdb","opengauss",] as const;diff --git a/src-tauri/src/commands/connection.rs b/src-tauri/src/commands/connection.rsindex 7d80ba7779..b0bc008870 100644--- a/src-tauri/src/commands/connection.rs+++ b/src-tauri/src/commands/connection.rs@@ -290,15 +290,17 @@ pub async fn test_connection(state: State<'_, Arc<AppState>>, config: ConnectionErr(e) => Err(e),}}- DatabaseType::Postgres | DatabaseType::Redshift | DatabaseType::Gaussdb | DatabaseType::OpenGauss => {- match db::postgres::connect(&url, connect_timeout).await {- Ok(pool) => {- pool.close();- Ok("Connection successful".to_string())- }- Err(e) => Err(e),+ DatabaseType::Postgres+ | DatabaseType::Redshift+ | DatabaseType::Gaussdb+ | DatabaseType::Kwdb+ | DatabaseType::OpenGauss => match db::postgres::connect(&url, connect_timeout).await {+ Ok(pool) => {+ pool.close();+ Ok("Connection successful".to_string())}- }+ Err(e) => Err(e),+ },DatabaseType::Sqlite => {let extensions = db::sqlite::sqlite_extension_specs_from_url_params(config.url_params.as_deref()).into_iter()@@ -457,9 +459,11 @@ pub async fn connect_db(state: State<'_, Arc<AppState>>, config: ConnectionConficonnect_bare_metadata_pool(&db_config, &host, port, connect_timeout).await?,MysqlMode::Bare,),- DatabaseType::Postgres | DatabaseType::Redshift | DatabaseType::Gaussdb | DatabaseType::OpenGauss => {- PoolKind::Postgres(db::postgres::connect(&url, connect_timeout).await?)- }+ DatabaseType::Postgres+ | DatabaseType::Redshift+ | DatabaseType::Gaussdb+ | DatabaseType::Kwdb+ | DatabaseType::OpenGauss => PoolKind::Postgres(db::postgres::connect(&url, connect_timeout).await?),DatabaseType::Sqlite => {let extensions = db::sqlite::sqlite_extension_specs_from_url_params(db_config.url_params.as_deref()).into_iter()