-
Notifications
You must be signed in to change notification settings - Fork 30
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
pypgstac function for deleting collections/items #144
Comments
these methods would be really useful |
I would also like these methods. |
@hrodmn I'm not sure that those are quite appropriate for the Loader class as the Loader is designed to take a file to ingest it. This is definitely something that I would consider exposing otherwise though. What were you thinking for the API? |
This would be great to have. I'm struggling to do it via PG Admin... I've resorted to truncating the table and re-indexing, which won't work for large collections. |
Did we get anywhere with this? I'd also like to know if we can 'truncate' a collection, even by connecting to postgres. |
Oh, nevermind, this is easy when connected to postgres. Just need to update search path, so the local functions are able to be found.
|
Confirming that @alexgleith 's tip works. If you forget to run the
|
Have you considered adding pypgstac functions for deleting collections and items? I see some SQL functions that seem to do this:
delete_collection
delete_item
What do you think about adding
delete_collections
anddelete_items
methods for theLoader
class?The text was updated successfully, but these errors were encountered: