Summary
Please include the Oracle Service Name in the ConnectionItems Attributes, similar to the functionality provided under: #1571
Description
Issue 1571 seems to have added the attribute database_name to the ConnectionItems Class, however it returns with 'none' when the connection_type is oracle
The following code
for i, conn in enumerate(datasource.connections, start=1):
for attr in dir(conn):
if not attr.startswith("_"):
value = getattr(conn, attr)
if not callable(value):
print(f"{attr}: {value}")
returns
auth_type: RDBMS
connection_credentials: None
connection_type: oracle
database_name: None
datasource_id: 12345678-90ab-cde1-2345-1234567890ab
datasource_name: Weekly data source
embed_password: False
id: 22345678-00ab-dde1-3345-2234567890ab
password: None
query_tagging: None
server_address: oracle.db.server
server_port: 1521
username: dbuser
Ideally I'd like the attribute 'service' added or for database_name to be dynamically populated with the relevant connection string attribute.
Mirroring the requirement specified in the previous issue we would like to be able to differentiate between connections to different databases on the same server, that share the same listener port.
Summary
Please include the Oracle Service Name in the ConnectionItems Attributes, similar to the functionality provided under: #1571
Description
Issue 1571 seems to have added the attribute database_name to the ConnectionItems Class, however it returns with 'none' when the connection_type is oracle
The following code
for i, conn in enumerate(datasource.connections, start=1):for attr in dir(conn):if not attr.startswith("_"):value = getattr(conn, attr)if not callable(value):print(f"{attr}: {value}")returns
auth_type: RDBMSconnection_credentials: Noneconnection_type: oracledatabase_name: Nonedatasource_id: 12345678-90ab-cde1-2345-1234567890abdatasource_name: Weekly data sourceembed_password: Falseid: 22345678-00ab-dde1-3345-2234567890abpassword: Nonequery_tagging: Noneserver_address: oracle.db.serverserver_port: 1521username: dbuserIdeally I'd like the attribute 'service' added or for database_name to be dynamically populated with the relevant connection string attribute.
Mirroring the requirement specified in the previous issue we would like to be able to differentiate between connections to different databases on the same server, that share the same listener port.