dbcli / litecli

CLI for SQLite Databases with auto-completion and syntax highlighting
https://litecli.com
BSD 3-Clause "New" or "Revised" License
2.06k stars 67 forks source link

How do I auto-comple Foreign Key? #133

Open j-steinbach opened 2 years ago

j-steinbach commented 2 years ago

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:

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