Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/piotrd22/sqlgenerator
An application that uses the OpenAi API and generates SQL queries for your database
https://github.com/piotrd22/sqlgenerator
java openai spring spring-ai sql
Last synced: 7 days ago
JSON representation
An application that uses the OpenAi API and generates SQL queries for your database
- Host: GitHub
- URL: https://github.com/piotrd22/sqlgenerator
- Owner: piotrd22
- Created: 2024-02-22T13:59:50.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-03-04T11:24:43.000Z (8 months ago)
- Last Synced: 2024-10-10T19:43:29.946Z (28 days ago)
- Topics: java, openai, spring, spring-ai, sql
- Language: Java
- Homepage:
- Size: 84 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SQLGenerator
The application uses OpenAi API (or Azure OpenAi API) and allows to generate SQL queries from natural language.
The application allows you to configure several database connections by adding data sources in the application.yml configuration file. Supported databases at the moment are PostgreSQL, Oracle, MySQL.
A small demo is available by running the application and containers from the docker folder. You can then go to http://localhost:8080 and use the chat. Just select the appropriate database, schema and ask a question like "Give me 10 users who have min 10 orders" and the application should return the necessary SQL query.
The technologies used are Java 17, Spring and the new Spring AI module