Skip to content
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

Self-contained solution to drop a table via SqliteDict API #137

Open
hholst80 opened this issue May 29, 2021 · 1 comment
Open

Self-contained solution to drop a table via SqliteDict API #137

hholst80 opened this issue May 29, 2021 · 1 comment

Comments

@hholst80
Copy link
Contributor

I store the main object id as a tablename. If I want to drop the object from the db, there is no way to drop a table using the SqliteDict API itself. I think there should be a drop_table function, similar to the static method get_tablenames.

Reasonable?

@anubhav-narayan
Copy link

anubhav-narayan commented Aug 28, 2021

@hholst80 I have made a Pull Request #141 which has 2 new classes over the existing Sqlitedict class and also has the features you need, I had to clean up the code a little before I could finally get it working, so give it a try if you can. However, I haven't added the drop function to the SqliteDict API itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants