Giter VIP home page Giter VIP logo

sdvdxl / chat2db Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chat2db/chat2db

0.0 1.0 0.0 17.8 MB

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

Home Page: https://sqlgpt.cn

License: Apache License 2.0

Shell 0.06% JavaScript 0.63% Java 61.94% TypeScript 28.01% HTML 5.46% Dockerfile 0.02% EJS 0.05% Less 3.83%

chat2db's Introduction

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

License GitHub release GitHub Stars GitHub Forks GitHub Contributors

Share Chat2DB Repository

Share on Telegram Share on Reddit

License Notation: Chat2DB is constructed and distributed for personal and non-commercial use only. For commercial use of this project, please contact corresponding authors.

Languages: English | 中文

Official website:Chat2DB

If you find Chat2DB helpful, please helpgithub starClick ⭐ Star and Fork in the top right corner, and your support is the biggest motivation for Chat2DB to get better

DEMO

demo2.0.mp4

📖 Introduction

   Chat2DB is a multi-database client tool that is open-source and free. 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

Downloading installation package from GitHub

Downloading installation package from official website

🚀 Supported databases

Chat2DB supports connecting to the following databases:

  • MySQL
  • PostgreSQL
  • H2
  • Oracle
  • SQLServer
  • SQLite
  • MariaDB
  • ClickHouse
  • DM
  • Presto
  • DB2
  • OceanBase
  • Hive
  • KingBase

Redis and MongoDB are partially supported , Hbase、Elasticsearch、openGauss、TiDB、InfluxDB will support in the future.

🌰 Demo

Create data source

crete datasource

Data source management

2

SQL console

2

AI intelligent assistant

image

🔥 AI Configuration

Use Chat2DB AI to get started

CONFIGURE CUSTOM AI

  • The rest api format for Custom AI is same as ChatGPT.

📦 Docker installation

  // Pull the latest client, then run Docker with the name 'chat2db', and mount 'root. chat2db' to '~. chat2db Docker'`
  docker run --name=chat2db -ti -p 10824:10824 -v ~/.chat2db-docker:/root/.chat2db  chat2db/chat2db:latest
  // The normal prompt here is' Tomcat started on port (s): 10824 (http) with context path ', which will complete the process

  // If the prompt 'The container name "chat2db" is already in use by container' appears here, it means that the container already exists and is running
  docker start chat2db
  // If you want to update chat2db, you need to first rm
  docker rm chat2db

🎯 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]:chat2db/Chat2DB.git
  • Front-End debug
node version must be 16 or later
Be sure to use yarn
$ cd Chat2DB/chat2db-client
$ yarn
$ yarn run start:web
  • Backend debug
$ cd ../chat2db-server
$ mvn clean install # maven 3.8 or later needs to be installed
$ cd chat2db-server/chat2db-server-start/target/
$ java -jar  -Dloader.path=./lib -Dchatgpt.apiKey=xxxxx chat2db-server-start.jar  #java 17 or later must be installed, 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.
  • If you need to deploy independently
$ npm run build:web:prod / cp -r dist ../chat2db-server/chat2db-server-start/src/main/resources/static/front / cp -r dist/index.html ../chat2db-server/chat2db-server-start/src/main/resources/thymeleaf
# Repackage the back-end services

📑 Documentation

Stargazers

Stargazers repo roster for @chat2db/Chat2DB

Forkers

Forkers repo roster for @chat2db/Chat2DB

☎️ Contact Us

WeChat

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 the students who contributed to Chat2DB~~

Star History

Star History Chart

chat2db's People

Contributors

shanhexi avatar jerryfan626 avatar chat2db-pro avatar chat2db-jerry avatar robinji0 avatar zhuoyuan1 avatar chenxian01 avatar tmlx1990 avatar zhuangjiaju avatar e-mhui avatar ttdzz avatar dangdang01234 avatar robinji9102 avatar robinji01 avatar leven-space avatar sametuca avatar leijuncn avatar evrentan avatar eltociear avatar 188 avatar aobingjava avatar gav1nxu avatar sakka6868 avatar xyombo avatar zheyu001 avatar qingxiao111 avatar

Watchers

 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.