This commit allows deleting (soft) a table. For an user, following command will allow soft deleting a table (bar) in db (foo)
influxdb3 table delete --dbname foo --table bar --host $host
Added soft_delete_table to DatabaseManager trait, which already hosts soft_delete_database method. The code roughly follows the same flow as db delete. Although like db schema, it does clone on write because the reference is behind an Arc, Arc::make_mut is used in this change.
Moved db delete related cli parser under "manage" module that has both db and table delete functionality
Some minor tidyups (removing unused methods, renaming method so that the order in name matches actual return type eg. table_id_and_schema, should return (id, schema) and not (schema, id))
This commit allows deleting (soft) a table. For an user, following command will allow soft deleting a table (bar) in db (foo)
soft_delete_table
toDatabaseManager
trait, which already hostssoft_delete_database
method. The code roughly follows the same flow as db delete. Although like db schema, it does clone on write because the reference is behind an Arc,Arc::make_mut
is used in this change.table_id_and_schema
, should return (id, schema) and not (schema, id))closes: https://github.com/influxdata/influxdb/issues/25561