Senzing Node.js SDK
    Preparing search index...
    • Retrieves details for a specific data source by its code. Returns a JSON string containing the data source object.

      Parameters

      • configJson: string

        The current configuration as a JSON string.

      • code: string

        The data source code to look up (e.g., "CUSTOMERS").

      Returns string

      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);