Code Monkey home page Code Monkey logo

ai2sql's Introduction

AI2SQL Chrome 插件

image

AI2SQL 是一个 Chrome 插件,它可以将自然语言问题翻译成 SQL 查询语句。该插件利用 OpenAI API,为用户提供便捷的 SQL 查询生成功能。

功能

  • 自动将自然语言问题转换为 SQL 查询
  • 支持自定义表结构(schema)
  • 显示转换后的 SQL 查询结果
  • 自动换行和 SQL 语法高亮
  • 设置页面允许用户输入自己的 OpenAI API Key 在 popup.js 文件顶部输入

安装

  1. 克隆此仓库或下载 ZIP 文件并解压:
  2. git clone https://github.com/yourusername/ai2sql-chrome-extension.git
  3. 打开 Chrome 浏览器,进入 chrome://extensions 页面。
  4. 选择 "开发者模式"。
  5. 点击 "加载已解压的扩展程序",选择项目文件夹。
  6. 完成!现在您可以在 Chrome 浏览器中使用 AI2SQL 插件。

使用方法

  1. 点击浏览器右上角的 AI2SQL 图标打开插件。
  2. 在 "表结构(Schema)" 输入框中输入您的表结构(可选)。
  3. 在 "问题" 输入框中输入您的自然语言问题。
  4. 点击 "生成查询" 按钮以获取翻译后的 SQL 查询语句。
  5. 您可以在 "SQL 结果" 文本区域查看生成的 SQL 查询。

许可证

本项目根据 MIT License 许可。

ai2sql's People

Contributors

likohd avatar

Stargazers

 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.