pedsnetdcc prepdb can be modified slightly to allow its use for updating privileges. Currently the prepare_database function takes an update keyword argument which is not used by the CLI. The update argument causes database creation to be skipped.
For consistency with the other commands, it would be better to rename update to force, use a custom check_stmt_err to honor the value of force, and add a --force switch to the prepdb CLI command.
Alternatively, we could add a separate 'update_privileges' command, which might be more sensible to people.
pedsnetdcc prepdb
can be modified slightly to allow its use for updating privileges. Currently theprepare_database
function takes anupdate
keyword argument which is not used by the CLI. Theupdate
argument causes database creation to be skipped.For consistency with the other commands, it would be better to rename
update
toforce
, use a customcheck_stmt_err
to honor the value offorce
, and add a--force
switch to theprepdb
CLI command.Alternatively, we could add a separate 'update_privileges' command, which might be more sensible to people.