GTK3 UI, helper for common odoo db commands written in C++
Uses gtkmm for gtk api, pqxx to interface with postgresql, cpptoml to parse configuration file.
Intended as a successor to odoo-dbtoolkit (written in Godot engine) to address some of the cavetas
First C++ endeavour.
$ sudo apt install -y libpqxx-dev libgtkmm-3.0-dev libcpptoml-dev
$ ./compile.sh$ sudo apt install -y libpqxx-6.4
$ ./dbtoolkitgtk~/.dbtoolkit.toml required, example contents.
All values must be quoted, fallbacks commented.
If fallback suffice, the key can be emitted:
[postgresql]
user = "odoo" # "postgres"
password = "voodoo" # "admin"
host = "192.168.0.66" # "127.0.0.1"
port = "5436" # "5432"
- Database lister with update button, shows all databases on the configured postgres instance
- Admin password setter, sets all
res.userspasswords on the currently selected database toadmin - Disable CRON button - sets all active
ir.cronrecords on the currently selected database toFalse - External ID getter - give a model
_nameand a databaseIDon the currently selected database and the external ID will be displayed - Field getter - give a model
_nameand get all columns available on the model - Database template backup - create a
_baksuffixed database using the currently selected database as a template - Database dropper - drop a database
- Database backup restorer - if the
_baksuffixed, or non suffixed (but a_baksuffixed db exists) db is selected, drop the non-suffixed db, and re-create it with the backup as a template
- Secure password storage in
~/.dbtoolkit.toml? - Extend field getter to show more useful information
- Output scrollwindow automatic expanding & contracting on content fill/removal.
