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 prepdbcan be modified slightly to allow its use for updating privileges. Currently theprepare_databasefunction takes anupdatekeyword argument which is not used by the CLI. Theupdateargument causes database creation to be skipped.For consistency with the other commands, it would be better to rename
updatetoforce, use a customcheck_stmt_errto honor the value offorce, and add a--forceswitch to theprepdbCLI command.Alternatively, we could add a separate 'update_privileges' command, which might be more sensible to people.