• Stars
    star
    4,156
  • Rank 10,423 (Top 0.3 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 1 year ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

SQL Translator is a tool for converting natural language queries into SQL code using artificial intelligence. This project is 100% free and open source.

SQL Translator
(SQL to Natural Language and Natural Language to SQL)

Welcome to the SQL and Natural Language Translator! This tool is designed to make it easy for anyone to translate SQL (Structured Query Language) commands into natural language and vice versa. SQL is a programming language used to manage and manipulate data in relational databases, and while it's a powerful tool, it can also be quite complex and difficult to understand. On the other hand, natural language is the language that we speak and write in everyday life, and it's often the preferred way to communicate for people who are not familiar with technical jargon.

With the SQL and Natural Language Translator, you don't need to be a SQL expert to understand what's going on in your database, or to write SQL queries. You can simply type in your query in natural language and get the corresponding SQL code, or type in your SQL code and get a human-readable translation.This project is 100% free and open source.


🌟 Features

  • Dark mode
  • Lowercase/uppercase toggle
  • Copy to clipboard
  • SQL syntax highlighting
  • Schema awareness (beta)
  • Query history

📖 How to use:

Using the SQL to Natural Language Translator is easy. Simply navigate to the tool's website and choose whether you want to translate from natural language to SQL or from SQL to natural language. Then, type in your query and hit the "translate" button. The tool will generate the corresponding code or text and display it on the screen. You can press the 'reverse' button to give input as Natural Language and get SQL queries in response

🎯 Roadmap

  • Functions (WIP)
  • Procedures

🛠️ Installation

Local Development Environment

  1. Clone the repository:

    git clone https://github.com/whoiskatrin/sql-translator.git
  2. Install the required packages:

    cd sql-translator
    npm install
  3. Build the application:

    npm run build
  4. Input your OPENAI API key in the .env file, you can get your API key here:

    OPENAI_API_KEY=$YOUR_API_KEY
  5. Start the development server:

    npm start

Docker Compose

  1. Clone the repository:

    git clone https://github.com/whoiskatrin/sql-translator.git
  2. Input your OPENAI API key in the .env.production file, you can get your API key here:

    OPENAI_API_KEY=$YOUR_API_KEY
  3. Start the development server:

    docker-compose up

🖥️ Usage

Once the development server is running, you can access the application by navigating to http://localhost:3000 in your web browser.

Enter a natural language query in the input box and click "Translate" to generate the corresponding SQL code. The generated SQL code will be displayed in the output box.

👥 Contributing

Contributions to SQL Translator are welcome and encouraged! To contribute, please follow these steps:

  1. Fork the repository
  2. Create a new branch
  3. Make your changes
  4. Push your changes to your fork
  5. Submit a pull request

📜 License

SQL Translator is released under the MIT License.

More Repositories

1

chart-gpt

AI tool to build charts based on text input
TypeScript
3,537
star
2

npm-copilot

CLI tool for Next.js that can analyze logs in real-time and suggest a solution using OpenAI
JavaScript
355
star
3

financial-statement-pdf-extractor

Python script to extract as much structured information as possible from annual/quarterly reports.
Python
90
star
4

rightmove-scraper

Python script to scrape Rightmove to find a house to buy or rent.
Python
5
star
5

selenium-testng-maven-template

This project is written in java and will serve an example of implementing a Selenium test project with Selenium3 and Maven. Everything is set up and tests can be added straight away.
Java
4
star
6

a---algorithm-pathfinding

A* is an informed search algorithm, or a best-first search, meaning that it solves problems by searching among all possible paths to the solution (goal) for the one that incurs the smallest cost (least distance travelled, shortest time, etc.), and among these paths it first considers the ones that appear to lead most quickly to the solution.
C#
2
star
7

open-hire

TypeScript
1
star
8

broken-urls-finder

Python script that runs in k8s on a cronjob to find all broken links after deployment. (example: 404, 500, 503 and etc.)
Python
1
star
9

color-analyzer-winform

Color counter for images
C#
1
star
10

datasphere-dbt

dbt Datasphere Plugin is for integrating multiple open-source data quality frameworks into your dbt projects. It unifies Soda SQL, Great Expectations, Datafold, providing a single interface to configure and run data quality checks.
Python
1
star