Get the Connection URL from a database connection in script?

How would I get the connection url (jdbc:postgresql://HOSTNAME:5432/DATABASE) of a database connection via script?

This isn't included within the system.db.getConnectionInfo return :frowning:

It'd be nice if there was a getConnectionConfig that brought back all of the config for a connection

Something something wait for 8.3?

It's probably possible through some amount of scripting, but eh.

3 Likes