influxdb icon indicating copy to clipboard operation
influxdb copied to clipboard

Support "DROP DATABASE IF EXISTS"

Open otoolep opened this issue 11 years ago • 3 comments

This useful command would allow clients to idempotently drop a database. If IF EXISTS is present, no error would be returned if the database does not exist.

https://github.com/influxdb/influxdb/pull/3892 introduced CREATE DATABASE IF NOT EXISTS, so using that PR as a guide, along with investigating the current implementation of DROP DATABASE should make it relatively easy to implement this feature.

otoolep avatar Nov 04 '15 19:11 otoolep

Hi @otoolep , can I have a try for this issue? I have create a pull request for it. If someone is already working on it then just ignore mine ya

ch33hau avatar Nov 06 '15 09:11 ch33hau

@ch33hau - email me your address so we can send you a tshirt. philip at influxdb

otoolep avatar Nov 09 '15 02:11 otoolep

@otoolep Thanks for your Monday early good news! =) I have sent my address to your email.

ch33hau avatar Nov 09 '15 03:11 ch33hau