Coder Social home page Coder Social logo

warrior701 / chat2db Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alibaba/ali-dbhub

0.0 0.0 0.0 24.01 MB

🔥 🔥 🔥 An intelligent and versatile general-purpose SQL client and reporting tool for databases which integrates ChatGPT capabilities.(智能的通用数据库SQL客户端和报表工具)

Home Page: https://chat2db.opensource.alibaba.com

License: Apache License 2.0

Shell 0.01% JavaScript 0.67% Java 79.68% TypeScript 16.36% HTML 0.11% Batchfile 0.01% Dockerfile 0.03% EJS 0.08% Less 3.05%

chat2db's Introduction

Chat2DB

🔥🔥🔥 An intelligent and versatile general-purpose SQL client and reporting tool for databases which integrates ChatGPT capabilities.

MIT GitHub release GitHub Stars GitHub Forks GitHub Contributors

Languages: English | 中文

Star History

Star History Chart

📖 Introduction

   Chat2DB is a multi-database client tool that is open-source and free from Alibaba. It supports local installation on Windows and Mac, as well as server-side deployment and web page access. Compared to traditional database client software such as Navicat and DBeaver, Chat2DB integrates AIGC's capabilities and is able to convert natural language into SQL. It can also convert SQL into natural language and provide optimization suggestions for SQL to greatly enhance the efficiency of developers. It is a tool for database developers in the AI era, and even non-SQL business operators in the future can use it to quickly query business data and generate reports.

✨ Features

  • 🌈 AI intelligent assistant, supporting natural language to SQL conversion, SQL to natural language conversion, and SQL optimization suggestions
  • 👭 Support team collaboration, developers do not need to know the online database password, solving the problem of enterprise database account security
  • ⚙️ Powerful data management capability, supporting management of data tables, views, stored procedures, functions, triggers, indexes, sequences, users, roles, authorizations, etc.
  • 🔌 Powerful extension capability, currently supporting MySQL, PostgreSQL, Oracle, SQLServer, ClickHouse, OceanBase, H2, SQLite, etc., and more databases will be supported in the future
  • 🛡 Front-end development using Electron, providing a solution that integrates Windows, Mac, Linux clients, and web versions
  • 🎁 Support environment isolation, online, and daily data permission separation

⏬ Download and Install

Description Download
Windows https://oss-chat2db.alibaba.com/release/1.0.9/Chat2DB%20Setup%201.0.9.exe
MacOS ARM64 https://oss-chat2db.alibaba.com/release/1.0.9/Chat2DB-1.0.9-arm64.dmg
MacOS X64 https://oss-chat2db.alibaba.com/release/1.0.9/Chat2DB-1.0.9.dmg
Jar包 https://oss-chat2db.alibaba.com/release/1.0.9/ali-dbhub-server-start.jar

🌰 Demo

  • Create data source
  • Data source management
  • SQL console
  • AI intelligent assistant

📦 Docker installation

docker pull chat2db/chat2db:latest

🎯 Operating Environment

Note: If local debugging is required

  • Java runtime Open JDK 17
  • JRE reference packaging and deployment method of jre.
  • Node runtime environment Node16 Node.js.

💻 Local Debugging

  • git clone to local
$ git clone [email protected]:alibaba/Chat2DB.git
  • Front-End installation
$ cd Chat2DB/ali-dbhub-client
$ npm install # Mounting front-end dependency
$ npm run build:prod # Package js to the source directory on the back end
  • Backend debug
$ cd ../ali-dbhub-server
$ mvn clean install # maven 3.8 or later needs to be installed
$ cd ali-dbhub-server/ali-dbhub-server-start/target/
$ java -jar -Dchatgpt.apiKey=xxxxx ali-dbhub-server-start.jar  # To launch the chat application, you need to enter the ChatGPT key for the chatgpt.apiKey. Without entering it, you won't be able to use the AIGC function.
$ # open http://127.0.0.1:10821 to start debug Note: Front-end installation is required
  • Front-End debug
$ cd Chat2DB/ali-dbhub-client
$ npm install 
$ npm run start 
$ # open http://127.0.0.1:10821  to start Front-End debug
$ # Note Front-end page completely depends on the service, so front-end students need to debug the back-end project

But front debugging need mapping of resources, you can download XSwitch, add the following configuration file

{
  "proxy": [
    [
      "http://127.0.0.1:10821/(.*).js$",
      "http://127.0.0.1:8001/$1.js",
    ],
    [
      "http://127.0.0.1:10821/(.*).css$",
      "http://127.0.0.1:8001/$1.css",
    ],
    [
      "http://127.0.0.1:10821/static/front/(.*)",
      "http://127.0.0.1:8001/$1",
    ],
    [
      "http://127.0.0.1:10821/static/(.*)$",
      "http://127.0.0.1:8001/static/$1",
    ],
  ],
}

📑 Documentation

☎️ Contact Us

微信:yxccw132 钉钉:9135032392

❤️ Acknowledgements

Thanks to all the students who contributed to Chat2DB~

chat2db's People

Contributors

chat2db-pro avatar chenxian01 avatar dangdang01234 avatar gt-tool avatar hou-shuaishuai avatar idjack avatar jerryfan626 avatar ke1ying avatar shanhexi avatar shenchenyang avatar tmlx1990 avatar yuanzhixiang avatar zhuangjiaju avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.