diff options
author | Amjith Ramanujam <amjith@netflix.com> | 2024-03-23 19:22:06 -0700 |
---|---|---|
committer | Amjith Ramanujam <amjith@netflix.com> | 2024-03-23 19:22:06 -0700 |
commit | 0725b88358cee9ac6ab219bab498edb6bcf70bd3 (patch) | |
tree | f4e0f471070727dab1568dfcd452cb26b9f84359 | |
parent | 9d5bcf0ba17fd0562309164175d7db1a54f85464 (diff) |
Improve \d to show list of tables.
-rw-r--r-- | CHANGELOG.md | 8 | ||||
-rw-r--r-- | TODO | 3 | ||||
-rw-r--r-- | TODO.md | 6 | ||||
-rw-r--r-- | litecli/packages/special/dbcommands.py | 2 |
4 files changed, 15 insertions, 4 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index edee1e9..00f3b65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## 1.11.0 - TBD + +### Improvements + +* When an empty `\d` is invoked the list of tables are returned instead of an error. + + + ## 1.10.1 - 2024-3-23 ### Bug Fixes @@ -1,3 +0,0 @@ -* [] Sort by frecency. -* [] Add completions when an attach database command is run. -* [] Add behave tests. @@ -0,0 +1,6 @@ +* [ ] Change to use ruff +* [ ] Automate the release process via GH actions. [Article](https://simonwillison.net/2024/Jan/16/python-lib-pypi/) + +* [] Sort by frecency. +* [] Add completions when an attach database command is run. +* [] Add behave tests. diff --git a/litecli/packages/special/dbcommands.py b/litecli/packages/special/dbcommands.py index dec3507..687c9a4 100644 --- a/litecli/packages/special/dbcommands.py +++ b/litecli/packages/special/dbcommands.py @@ -224,7 +224,7 @@ def describe(cur, arg, **_): arg ) else: - raise ArgumentMissing("Table name required.") + return list_tables(cur) log.debug(query) cur.execute(query) |