Closed
Labels
enhancementNew feature or requestgood first issueGood for newcomershelp wantedExtra attention is needed
Description
Description
db query runs SQL queries against a database but gives no visual feedback while the query is executing. This can be confusing for long-running queries. The command should show a spinner (using ora) while waiting for the database response.
Location
src/commands/query.ts — action at lines 16-67
Reference pattern
See doctor.ts lines 41-53 for the dynamic import pattern, or endpoint.ts line 3 for a static import.
What to do
Option A — Static import (preferred since ora is already a dependency):
- Add
import ora from "ora";at the top - Before the query, show:
const spinner = ora("Running query…").start(); - After results come back:
spinner.stop(); - Handle errors: stop spinner before showing error
Acceptance criteria
-
db query <branch> "SELECT 1"shows a spinner while executing - Spinner stops before results are displayed
- Spinner stops properly on error
-
npm run buildpasses with no errors
⏰ This issue must be claimed and completed within 1 week. If not, it will be automatically done in the next release.
Labels
good first issue, help wanted, enhancement
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestgood first issueGood for newcomershelp wantedExtra attention is needed
Activity
TrivCodez commentedon Jul 21, 2026
Hey @SankeerthNara @jordansilly77-stack 👋
I've already contributed a bit to the repo and was looking through the open issues. This one (#63 — Add spinner/loading indicator to
db query) is tagged as both a good first issue and help wanted, so I wanted to check if either of you have any interest in picking it up.If you're free and keen, happy to help review or offer pointers. Just want to keep the momentum going on this project — it's a great CLI and there's a lot of low-hanging fruit here that would make a real difference.
No pressure at all — just putting it out there!
SankeerthNara commentedon Jul 22, 2026
Could you assign this to me
feat: add spinner to db query command (closes IN3PIRE#63)
SankeerthNara commentedon Jul 22, 2026
Hey @TrivCodez , Go through the pr and ask for any changes.
Thanks for calling me out
TrivCodez commentedon Jul 22, 2026
No problem :)
feat: add spinner to db query command