SQL Translator is a tool for converting natural language queries into SQL code using artificial intelligence. This project is 100% free and open source.
- dark more
- lowercase/uppercase toggle
- copy to clipboard
- SQL syntax highlighting
- schema awareness (beta)
- functions and procedures
- support for languages other than English
-
Clone the repository:
git clone https://github.com/whoiskatrin/sql-translator.git
-
Install the required packages:
cd sql-translator npm install
-
Input your OPENAI API key in the .env file, you can get your API key here:
OPENAI_API_KEY=$YOUR_API_KEY
-
Start the development server:
npm start
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.
Contributions to SQL Translator are welcome and encouraged! To contribute, please follow these steps:
- Fork the repository
- Create a new branch
- Make your changes
- Push your changes to your fork
- Submit a pull request
SQL Translator is released under the MIT License.