# Get the Connection URL from a database connection in script?

**URL:** <https://forum.inductiveautomation.com/t/get-the-connection-url-from-a-database-connection-in-script/90540>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [May 17, 2024, 2:14am UTC](https://forum.inductiveautomation.com/t/get-the-connection-url-from-a-database-connection-in-script/90540 "2024-05-17T02:14:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [May 17, 2024, 2:14am UTC](https://forum.inductiveautomation.com/t/get-the-connection-url-from-a-database-connection-in-script/90540/1 "2024-05-17T02:14:48Z")

</div>

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 ☹

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

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 17, 2024, 2:43am UTC](https://forum.inductiveautomation.com/t/get-the-connection-url-from-a-database-connection-in-script/90540/2 "2024-05-17T02:43:51Z")

</div>

Something something wait for 8.3?

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