dbcli / dbcli/litecli

How do I auto-comple Foreign Key?

Đang mở
#133 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
3.3k
Fork
95
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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](https://sqlite.org/foreignkeys.html): `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` 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`

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.