-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
sqlite-utils indexes
command
#263
Comments
Here's how sqlite-utils/sqlite_utils/cli.py Lines 1266 to 1277 in 9c67cb9
Running it from a SQL query makes it easy to support modifiers like |
Figuring out the right queries: This query shows all columns across all indexes across all tables: select i.name as index_name, xinfo.* from sqlite_master
join pragma_index_list(sqlite_master.name) i
join pragma_index_xinfo(index_name) xinfo
where sqlite_master.type = 'table' |
By default I won't return auxiliary columns, but I'll offer a |
This looks good:
|
Needs to show the table each index applies to. |
While working on #260 I realized there's no command to show indexes in a database, even though there is one for showing tables and one for triggers.
I should implement #261 first.
The text was updated successfully, but these errors were encountered: