Adds a data source to the Senzing configuration. Returns the updated configuration JSON string with the new data source included.
The current configuration as a JSON string.
Data source options including the required code identifier.
code
The updated configuration JSON string.
import { addDataSource } from "@senzing/configtool";let config = addDataSource(configJson, { code: "CUSTOMERS" });config = addDataSource(config, { code: "WATCHLIST", retentionLevel: "Remember" }); Copy
import { addDataSource } from "@senzing/configtool";let config = addDataSource(configJson, { code: "CUSTOMERS" });config = addDataSource(config, { code: "WATCHLIST", retentionLevel: "Remember" });
basic-usage snippet
Adds a data source to the Senzing configuration. Returns the updated configuration JSON string with the new data source included.