Skip to content

Conversation

@scottnemes
Copy link
Contributor

Description

After typing SELECT, columns from all tables in the current database will be returned as auto complete suggestions. This allows the user to get completions for columns without having to write the FROM clause first.

image

Resolves #212

Checklist

  • I've added this contribution to the changelog.md.
  • I've added my name to the AUTHORS file (or it's already there).
  • I ran uv run ruff check && uv run ruff format && uv run mypy --install-types . to lint and format the code.

@scottnemes scottnemes self-assigned this Jan 31, 2026
Copy link
Contributor

@rolandwalker rolandwalker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Outstanding!

@rolandwalker
Copy link
Contributor

rolandwalker commented Jan 31, 2026

Will keywords still complete here?

Edit: yes, but this needs some further work for SELECT COUNT(…)'. COUNT` is buried.

@scottnemes
Copy link
Contributor Author

scottnemes commented Jan 31, 2026

Will keywords still complete here?

Edit: yes, but this needs some further work for SELECT COUNT(…)'. COUNT` is buried.

@rolandwalker Not sure what you mean here, it works as I would expect. Columns show up first with no further input, so COUNT and other functions are farther down if that's what you mean. But that implies having an arbitrary weight (which we could do) to a function like COUNT. But once you start typing, it works as I would expect.

image image image image





And comparing to current functionality, which works the same:

image image image image

@rolandwalker
Copy link
Contributor

Right. Working on finesse for builtins such as COUNT() in #1500.

@scottnemes scottnemes merged commit 57c7843 into dbcli:main Jan 31, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Suggest columns names when typing SELECT query

2 participants