1

enter image description here

I am using QGIS 3.0.2

I want to add connection settings in DB Manager via Python script. is it possible ? (I am interested in PostGIS and Oracle Spatial for now)

This script will save the connection setting (except the username and password) and the db manager will reflect the added connection in the respective list

Note: I can use psycopg2 or QGIS native lib but my requirements are to use the default already available tools only.

closed as off-topic by ahmadhanb, Vince, Andre Silva, MaryBeth, csk Dec 28 '18 at 19:17

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "When seeking help to debug/write/improve code always provide the desired behavior, a specific problem/error and the shortest code (as formatted text, not pictures) needed to reproduce it in the question body. Providing a clear problem statement and a code attempt helps others to help you." – ahmadhanb, Vince, Andre Silva, MaryBeth
If this question can be reworded to fit the rules in the help center, please edit the question.