Hello,
pushing this one to the top, just in case someone missed the first message. Hoping to get someone knowing Python and using Postgres to help a bit with kamcli.
Cheers, Daniel
On 17.02.20 16:53, Daniel-Constantin Mierla wrote:
Hello,
anyone in the community with Python knowledge using Postgres that can spend a bit of time to add support in kamcli?
* https://github.com/kamailio/kamcli
It should be mainly about the content of the code corresponding to db subcommand:
* https://github.com/kamailio/kamcli/blob/master/kamcli/commands/cmd_db.py
The target for it is to replace kamdbctl and has some command line variants for couple of its functions, now being implemented for MySQL.
The rest of the code relies on sqlalchemy, which should have transparent support for both mysql and postgress (even more). Testing the other commands connecting to database with postgres would be good, though.
With more and more diversity in the default shell by main Linux/Unix distros, we hope to be able to replace in the near future the kamctl and kamdbctl tools, which are more like bash scripting (a few issue being reported and fixed lately). Besides that, using python allows better input/parameter checking/validation as well as more options for formatted output.
Cheers, Daniel