sql-trainer

Crates.iosql-trainer
lib.rssql-trainer
version0.1.1
created_at2025-10-03 21:03:52.280818+00
updated_at2025-10-06 17:46:05.022571+00
descriptionA CLI for learning SQL in a playground environment. Uses AI to generate Databases.
homepage
repositoryhttps://github.com/lazy-sock/sql-trainer
max_upload_size
id1867196
size66,400
(lazy-sock)

documentation

README

A CLI for learning SQL in a playground environment. Uses AI to generate Databases.

Installation

You need to have Rust and Cargo installed.

cargo install sql-trainer

Generate new Database

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

Usage

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).

Commit count: 0

cargo fmt