Retrieves details for a specific data source by its code. Returns a JSON string containing the data source object.
The current configuration as a JSON string.
The data source code to look up (e.g., "CUSTOMERS").
A JSON string representing the data source object.
import { getDataSource } from "@senzing/configtool";const ds = JSON.parse(getDataSource(configJson, "CUSTOMERS"));console.log(ds.DSRC_CODE, ds.DSRC_RELY); Copy
import { getDataSource } from "@senzing/configtool";const ds = JSON.parse(getDataSource(configJson, "CUSTOMERS"));console.log(ds.DSRC_CODE, ds.DSRC_RELY);
basic-usage snippet
Retrieves details for a specific data source by its code. Returns a JSON string containing the data source object.