| Crates.io | bunnysql |
| lib.rs | bunnysql |
| version | 0.2.1 |
| created_at | 2025-07-11 09:53:16.998631+00 |
| updated_at | 2025-07-14 13:00:20.643032+00 |
| description | ๐ฐ Bunny SQL Assistant is a CLI tool that converts natural language into SQL. |
| homepage | https://github.com/albanysiswanto/bunny-sql-assistant.git |
| repository | https://github.com/albanysiswanto/bunny-sql-assistant.git |
| max_upload_size | |
| id | 1747599 |
| size | 97,659 |
Bunny SQL Assistant is a command-line interface (CLI) tool that transforms natural language commands (in Indonesian or English) into valid SQL queries and executes them directly on your local database. This project is designed to simplify database interactions using everyday language.
Before you begin, ensure you have installed:
Clone the Repository:
git clone https://github.com/yourusername/bunny-sql-assistant.git
cd bunny-sql-assistant
Build the Project:
cargo build --release
Verify Installation:
Ensure the bunny binary is available in the ./target/release/ directory.
bunnysql config --db-type sqlite sqlite://database_file.db
Example:
bunnysql config --db-type sqlite sqlite://test.db
bunnysql config --db-type postgres postgres://username:password@localhost:5432/database_name
Example:
bunnysql config --db-type postgres postgres://postgres:bunny@localhost:5432/mydb
Note: Database files will be created automatically for SQLite. For PostgreSQL, ensure the database exists.
Basic query format:
bunnysql query "Your natural language query"
SQLite Examples:
bunnysql query "Show all products"
bunnysql query "Find users older than 25 years"
PostgreSQL Examples:
bunnysql query "Show top 5 customers by total purchases"
bunnysql query "List all orders from last month"
bunnysql --help
Configure the Groq API by creating a .env file:
GROQ_API_KEY=your_api_key_here
GROQ_MODEL=mixtral-8x7b-32768 # or other supported models
Supported Models:
llama3-8b-8192mixtral-8x7b-32768cargo install sqlx-cli --no-default-features --features sqlite
DATABASE_URL=sqlite://test.db cargo sqlx prepare
cargo install sqlx-cli --no-default-features --features postgres
DATABASE_URL=postgres://user:pass@localhost:5432/db cargo sqlx prepare
MIT License ยฉ 2025 Albany Siswanto
We welcome contributions! Please:
Report issues on our GitHub Issues page.
For questions or support:
Thank you for using Bunny SQL Assistant! ๐ฐ