Skip to content

Add spinner/loading indicator to db query #63

Closed

Description

@TrivCodez

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

  1. Add import ora from "ora"; at the top
  2. Before the query, show: const spinner = ora("Running query…").start();
  3. After results come back: spinner.stop();
  4. 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 build passes 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

Activity

  1. added
    good first issue
    help wanted
    enhancement
    on Jul 20, 2026
  2. TrivCodez commented on Jul 21, 2026

    @TrivCodez
    ContributorAuthor

    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!

  3. SankeerthNara commented on Jul 22, 2026

    @SankeerthNara
    Contributor

    Could you assign this to me

  4. added a commit that references this issue on Jul 22, 2026
    1d6ff52
  5. SankeerthNara commented on Jul 22, 2026

    @SankeerthNara
    Contributor

    Hey @TrivCodez , Go through the pr and ask for any changes.

    Thanks for calling me out

  6. TrivCodez commented on Jul 22, 2026

    @TrivCodez
    ContributorAuthor

    Hey @TrivCodez , Go through the pr and ask for any changes.

    Thanks for calling me out

    No problem :)

  7. added a commit that references this issue on Jul 22, 2026
    5969259
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementgood first issuehelp wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions