-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Batch database upgrade #162
Comments
If the GUI is not enough, then it can be possible with Python ? Open your clock in Processing panel, and copy/paste the Python line. You can add a Python loop. |
Thanks for your suggestion to take the Python My main problem, however, was getting the list of all database connections configured in Qgis. With this list, I can write a small Python script or fill the fields in the batch processing GUI. For the batch processiong interface, I wrote a “custom expression” Python function:
Then I could call the expression in “Autofill → Add values by expression”. This function (without the decorator) can also be used for the loop in the Python console that you suggested:
|
Yes, I think is an helper in the plugin. from pg_metadata.connection_manager import connections_list,
connections, _ = connections_list()
# or check_pgmetadata_is_installed as well ? I didn't try. |
Ah yes, that should work, too, in a Python script. For the batch GUI I still need the decorated function. But maybe a toolbox algorithm “Upgrade all [connected] databases” would be a nice addition. |
Is there a possibility for run the database upgrade as a batch process for all databases? If I select “Execute as batch process”, I would have to select the database connections by hand, because there is no auto-fill select from list as with batch processes for layers.
The text was updated successfully, but these errors were encountered: