| Crates.io | sql-trainer |
| lib.rs | sql-trainer |
| version | 0.1.1 |
| created_at | 2025-10-03 21:03:52.280818+00 |
| updated_at | 2025-10-06 17:46:05.022571+00 |
| description | A CLI for learning SQL in a playground environment. Uses AI to generate Databases. |
| homepage | |
| repository | https://github.com/lazy-sock/sql-trainer |
| max_upload_size | |
| id | 1867196 |
| size | 66,400 |
A CLI for learning SQL in a playground environment. Uses AI to generate Databases.
You need to have Rust and Cargo installed.
cargo install sql-trainer
First install ollama and the model qwen3:latest. Then serve the AI with ollama serve.
After that you can run the following command with a topic you want. Keep in mind that the topic cannot contain spaces.
sql-trainer --create_db_ai db_name --topic github
sql-trainer --db github
Then just run your SQL Select Queries! You can exit the program with exit and ask AI for help with help <question> (you have to host it yourself with ollama serve).