GSTPy.get_pg_connection¶
-
GSTPy.
get_pg_connection
((str)user, (str)password, (str)host, (int)port, (str)database) → NetworkInterface :¶ Establish a connection to the postgres backend interface.
- Parameters
user (str) – The username of the database user.
password (str) – The password of the database user.
host (str) – The hostname or ip of the database instance.
port (int) – The port of the database instance
database (str) – The database name to connect to.
- Returns
The network interface.
- Return type