dbcli / dbcli/pgcli

\d with wildcards doesn't say which table is which

オープン
#1,521 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
Python
スター
13.4k
フォーク
613
平均マージ
6日 14時間
マージ済み PR(30日)
10

説明

If `\d` is given a pattern with a wildcard, the details for multiple tables may be displayed — but there's nothing labelling which details are for which table.

For example:

```
sqlparsetemplate1> \d pg_time*
┌────────────┬──────────┬───────────┐
│ Column │ Type │ Modifiers │
├────────────┼──────────┼───────────┤
│ abbrev │ text │ │
│ utc_offset │ interval │ │
│ is_dst │ boolean │ │
└────────────┴──────────┴───────────┘
┌────────────┬──────────┬───────────┐
│ Column │ Type │ Modifiers │
├────────────┼──────────┼───────────┤
│ name │ text │ │
│ abbrev │ text │ │
│ utc_offset │ interval │ │
│ is_dst │ boolean │ │
└────────────┴──────────┴───────────┘
Time: 0.048s
```

The `pg_time*` pattern has matched the table names `pg_timezone_abbrevs` and `pg_timezone_names` so listed the columns in each of them, but it doesn't indicate which is which.

This is in pgcli version 4.3.0.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、ワイルドカードパターンに対する pgcli の \d コマンド処理と、テーブルの詳細を出力するコードを見つけます。複数の一致するテーブルで例を再現する前に、\d とワイルドカードマッチングに関する既存の CLI テストを確認します。表示された各テーブルの詳細でテーブル名が明確に識別され、その動作が回帰テストでカバーされていれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
postgresql, python
領域
cli, databases
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。