sqlite-utils icon indicating copy to clipboard operation
sqlite-utils copied to clipboard

Allow an index to be dropped

Open tobych opened this issue 1 year ago • 0 comments

Hi. This library is awesome! Also. I'd love to be able to drop an index.

I can submit a PR to do this, but I'd love some discussion first.

Unless, of course, there's a way of doing this from the library I've not noticed.

Something like this:

mytable.indexes[0].drop(ignore=True)

I guess ideally I could access the index by name, too. Separate issue, of course.

mytable.indexes['idx_table_col1_col2'].drop(ignore=True)

tobych avatar Apr 27 '24 00:04 tobych