Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I auto-comple Foreign Key? #133

Open
j-steinbach opened this issue Apr 8, 2022 · 0 comments
Open

How do I auto-comple Foreign Key? #133

j-steinbach opened this issue Apr 8, 2022 · 0 comments

Comments

@j-steinbach
Copy link

j-steinbach commented Apr 8, 2022

Note: I am both new to SQLite and litecli, so maybe I just didn't find the right documentation.

I have two tables, cards and card_types. In my table cards I have an entry called type, which uses a FOREIGN KEY: FOREIGN KEY("type") REFERENCES "card_types"("type"). Now whenever I insert something into cards I want to simply auto-complete my type from card_types:

  • For example with an entry "special" in card_types, I expected to be able to INSERT INTO cards (name, type, effect) VALUES ("Pocketsand", spec<TAB> and have it autocomplete to "special".
  • Same when using a "Favourite Query" (which are awesome, btw): new_card | INSERT INTO cards (name, type, effect) VALUES ("$1", $2, "$3") > new_card "Pocketsand" spec<Tab>

Am I doing something wrong? Or is this simply not possible? (If not, then this would be a pretty nice feature)

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

No branches or pull requests

1 participant