informatica.infacore.datasource.datasource.DataSource.get_connection
- DataSource.get_connection(connection_name: str) Connection
Gets the connection object of the specified connection from the selected data source.
- Parameters:
connection_name (str) – Name of connection from where you want to fetch the connection object.
- Returns:
The connection object with the data source instance.
- Return type:
Example
>>> import informatica.infacore as ic >>> orcl_ds = ic.get_datasource("Oracle") >>> orcl_cnx = orcl_ds.get_connection("Oracle Prod")