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

feat(emx2-pyclient): Truncate table #4250

Open
dtroelofsprins opened this issue Sep 23, 2024 · 1 comment
Open

feat(emx2-pyclient): Truncate table #4250

dtroelofsprins opened this issue Sep 23, 2024 · 1 comment

Comments

@dtroelofsprins
Copy link
Contributor

Is your feature request related to a problem? Please describe.
There are quite some use-cases where I need to delete all records from a table. Currently I first need to retrieve all data and then use the delete_records method.

Describe the solution you'd like
It would be nice if there is a method to truncate a table. Adding an extra parameter to the delete_records method to indicate deletion of all data could also be an option.

Describe alternatives you've considered
The current way of working, first get all the data and then delete it.

@erikzwart
Copy link
Contributor

Did you consider to use a graphql query to truncate the table, as admin your have the option to truncate a table in the emx2 ui.

query 'mutation {truncate(tables:"Table1"){message}}'

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

No branches or pull requests

2 participants