MCPcopy
hub / github.com/OtterMind/Chat2DB

github.com/OtterMind/Chat2DB @v3.4.1 sqlite

repository ↗ · DeepWiki ↗ · release v3.4.1 ↗
5,753 symbols 21,464 edges 1,312 files 1,649 documented · 29%
README

Chat2DB

Coming soon on 10.25 for offline version, please get notified on Product Hunt!

Chat2DB Local - Make everyone a database expert and data analyst. | Product Hunt

English | 中文· 🏆 Top 100 Open Project!

Download and Install Chat2DB(Pro)

Download Double click package to install

AI-driven intelligent SQL development

Chat2DB Chat2DB Chat2DB

AI-driven Intelligent Reports

Chat2DB

AI-driven Data Exploration

Chat2DB

We have also open-sourced our first GLM, Chat2DB-SQL-7B. You can refer more details from below links.

Deploy the InternLM model on Chat2DB

Thanks to InternLM for the strong support for this project. In the custom models of this project, multiple model weights from InternLM can be integrated. For more details, please refer to chat2db-internlm-deploy

Supported databases

Chat2DB Pro supports all the following databases, including the most requested Redis feature. - MySQL - PostgreSQL - H2 - Oracle - SQLServer - SQLite - MariaDB - ClickHouse - DM - Presto - DB2 - OceanBase - Hive - KingBase - MongoDB - Redis - Snowflake

Using Chat2DB

Refer to the Quick Start Guide to get started with Chat2DB.

Contribution Guide

We welcome and encourage community members to contribute to the Chat2DB project. Whether it's by reporting issues, proposing new features, or directly submitting code fixes and improvements, your help is invaluable. If you're interested in contributing, please follow our contribution guidelines:

  • Report Issues: Report any issues or bugs encountered via GitHub Issues.
  • Submit Pull Requests: If you wish to contribute directly to the codebase, please fork the repository and submit a pull request (PR).
  • Improve Documentation: Contributions to best practices, example code, documentation improvements, etc., are welcome.

Stargazers

Stargazers repo roster for @chat2db/Chat2DB

Forkers

Forkers repo roster for @chat2db/Chat2DB

👋 Join Us

On WeChat

On Discord

Discord

LICENSE

The primary license used by this software is the Apache License 2.0, supplemented by the Chat2DB License.

❤️ Acknowledgements

Thanks to all who contributed to Chat2DB~~

Star History

<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=CodePhiliaX/chat2db&type=Date" />

link

<a href="https://sa-token.cc" target="_blank">
    <img src="https://github.com/user-attachments/assets/d2182835-057a-47e6-80fc-e9efc4792a7f" alt="sa-token" width="15%"/>
</a>

Extension points exported contracts — how you extend this code

TaskMapper (Interface)
TASK TABLE Mapper interface @author chat2db @since 2024-01-25 [6 implementers]
chat2db-server/chat2db-server-domain/chat2db-server-domain-repository/src/main/java/ai/chat2db/server/domain/repository/mapper/TaskMapper.java
DialectProperties (Interface)
Dialect configuration @author Jiaju Zhuang [12 implementers]
chat2db-server/chat2db-server-test/src/test/java/ai/chat2db/server/test/domain/data/service/dialect/DialectProperties.java
Result (Interface)
@author qiuyuyu @date 2022/01/20 [6 implementers]
chat2db-server/chat2db-server-tools/chat2db-server-tools-base/src/main/java/ai/chat2db/server/tools/base/wrapper/Result.java
Plugin (Interface)
@author jipengfei @version : Plugin.java [33 implementers]
chat2db-server/chat2db-spi/src/main/java/ai/chat2db/spi/Plugin.java
DialectProperties (Interface)
Dialect configuration [10 implementers]
chat2db-server/chat2db-server-start/src/test/java/ai/chat2db/server/start/test/dialect/DialectProperties.java
ExceptionConvertor (Interface)
exception converter @author Shi Yi [16 implementers]
chat2db-server/chat2db-server-web-start/src/main/java/ai/chat2db/server/web/start/exception/convertor/ExceptionConvertor.java
DataSourceBaseRequestInfo (Interface)
@author jipengfei @version : DataSourceBaseRequestInfo.java [15 implementers]
chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/data/source/request/DataSourceBaseRequestInfo.java
ProcessEnv (Interface)
(no doc)
chat2db-client/typings.d.ts

Core symbols most depended-on inside this repo

append
called by 2248
chat2db-server/chat2db-spi/src/main/java/ai/chat2db/spi/util/SqlSplitProcessor.java
r
called by 774
chat2db-client/src/main/main.js
i18n
called by 441
chat2db-client/src/i18n/index.tsx
get
called by 332
chat2db-server/chat2db-server-domain/chat2db-server-domain-api/src/main/java/ai/chat2db/server/domain/api/service/TaskService.java
map
called by 308
chat2db-server/chat2db-server-tools/chat2db-server-tools-base/src/main/java/ai/chat2db/server/tools/base/wrapper/result/PageResult.java
join
called by 299
chat2db-server/chat2db-server-tools/chat2db-server-tools-common/src/main/java/ai/chat2db/server/tools/common/util/EasyStringUtils.java
getString
called by 280
chat2db-server/chat2db-plugins/chat2db-mysql/src/main/java/ai/chat2db/plugin/mysql/value/sub/MysqlBitProcessor.java
name
called by 244
chat2db-client/src/main/main.js

Shape

Method 3,626
Class 929
Function 757
Interface 313
Enum 128

Languages

Java76%
TypeScript24%

Modules by API surface

chat2db-client/src/main/main.js401 symbols
chat2db-client/src/components/MonacoEditor/syntax-parser/plugin/sql-parser/mysql/parser.ts67 symbols
chat2db-server/chat2db-spi/src/main/java/ai/chat2db/spi/sql/ConnectInfo.java65 symbols
chat2db-server/chat2db-spi/src/main/java/ai/chat2db/spi/util/SqlSplitter.java42 symbols
chat2db-server/chat2db-spi/src/main/java/ai/chat2db/spi/util/OracleLexerDefinition.java40 symbols
chat2db-server/chat2db-spi/src/main/java/ai/chat2db/spi/util/OBOraclePLLexerDefinition.java40 symbols
chat2db-server/chat2db-spi/src/main/java/ai/chat2db/spi/util/LexerTokenDefinition.java40 symbols
chat2db-server/chat2db-spi/src/main/java/ai/chat2db/spi/model/JDBCDataValue.java34 symbols
chat2db-server/chat2db-server-domain/chat2db-server-domain-core/src/main/java/ai/chat2db/server/domain/core/impl/TableServiceImpl.java29 symbols
chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/ai/ChatController.java28 symbols
chat2db-server/chat2db-spi/src/main/java/ai/chat2db/spi/sql/SQLExecutor.java27 symbols
chat2db-server/chat2db-spi/src/main/java/ai/chat2db/spi/util/SqlSplitProcessor.java26 symbols

Dependencies from manifests, versioned

ai.chat2db:chat2db-clickhouse
ai.chat2db:chat2db-db2
ai.chat2db:chat2db-dm
ai.chat2db:chat2db-h2
ai.chat2db:chat2db-hive
ai.chat2db:chat2db-kingbase
ai.chat2db:chat2db-mariadb
ai.chat2db:chat2db-mongodb
ai.chat2db:chat2db-mysql2.0.0-SNAPSHOT · 1×
ai.chat2db:chat2db-oceanbase
ai.chat2db:chat2db-oracle
ai.chat2db:chat2db-plugins

Datastores touched

(mysql)Database · 1 repos
(mongodb)Database · 1 repos
ali_dbhubDatabase · 1 repos
ali_dbhub_testDatabase · 1 repos
DEMODatabase · 1 repos
postgresDatabase · 1 repos

For agents

$ claude mcp add Chat2DB \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact