Skip to content

Conversation

fbdb
Copy link
Contributor

@fbdb fbdb commented Jun 7, 2025

Description

To be suggested autocompletion when setting the search_path, the keyword's suggestion "search_path TO" will be suggested on a "SET" token, only if the latter is the first token of the SQL statement (to differentiate it from the "UPDATE foo SET"). Then, available schemas are suggested (after the "TO" token).

Resolves #1511


I'm open to suggestions if I did anything weirdly.


Checklist

  • I've added this contribution to the changelog.rst.
  • I've added my name to the AUTHORS file (or it's already there).
  • I installed pre-commit hooks (pip install pre-commit && pre-commit install).
  • Please squash merge this pull request (uncheck if you'd like us to merge as multiple commits)

@j-bennet
Copy link
Contributor

There seems to be a conflict @fbdb , can you please rebase? Thanks!

To be suggested autocompletion when setting the search_path, the
keyword's suggestion "search_path TO" will be suggested on a "SET"
token, only if the latter is the first token of the SQL statement (to
differentiate it from the "UPDATE foo SET"). Then, available schemas are
suggested (after the "TO" token).

Resolves dbcli#1511
@fbdb
Copy link
Contributor Author

fbdb commented Jul 26, 2025

I've rebased

@j-bennet j-bennet merged commit f46d844 into dbcli:main Jul 31, 2025
7 checks passed
@j-bennet
Copy link
Contributor

Thank you @fbdb !

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.

Autocompletion when setting the search_path
2 participants