| Crates.io | bunny-sql-assistant |
| lib.rs | bunny-sql-assistant |
| version | 0.0.1 |
| created_at | 2025-07-11 04:48:38.937532+00 |
| updated_at | 2025-07-11 04:48:38.937532+00 |
| description | 🐰 Bunny SQL Assistant is a CLI tool that converts natural language into SQL using local LLMs like Ollama. |
| homepage | https://github.com/albanysiswanto/bunny-sql-assistant.git |
| repository | https://github.com/albanysiswanto/bunny-sql-assistant.git |
| max_upload_size | |
| id | 1747405 |
| size | 87,123 |
Bunny SQL Assistant is an open-source CLI tool built with Rust that enables non-technical users to write and execute SQL queries using natural language. It leverages local LLMs like DeepSeek-Coder via Ollama to generate SQL queries from prompts in Indonesian or English.
deepseek-coder installedgit clone https://github.com/yourname/bunny-sql-assistant.git
cd bunny-sql-assistant
cargo build --release
cargo install --path .
bunny config sqlite://test.db
bunny query "Show top 3 products by sales"
📜 Generated SQL:
SELECT * FROM produk ORDER BY penjualan DESC LIMIT 3;
+----+------------+-----------+
| id | name | sales |
+----+------------+-----------+
| 2 | Smartphone | 300 |
| 8 | Flashdisk | 250 |
| 3 | Mouse | 200 |
+----+------------+-----------+
docker build -t bunny .
docker run --rm -v $(pwd)/test.db:/app/test.db bunny query "Show all products"
.env ConfigurationCreate a .env file to store default settings:
OLLAMA_URL=http://localhost:11434
OLLAMA_MODEL=deepseek-coder
tokioclapsqlxtabledreqwestOllamaPull requests are welcome! Feel free to fork the repo, add features or improvements, and open a PR.
MIT License © 2025 - Albany Siswanto