Releases: damgem/DataImporter
Releases · damgem/DataImporter
v0.1.6
v0.1.5
Introduction of Value Maps. One can specify a value map by adding them like this to the config.json
:
{
...
"valueMaps": {
"mymap": {
"good": "1",
"neutral": "0",
"bad": "-1"
}
}
...
}
And a field like myfield2
can now reference a Value Map like this:
...
"mapping": {
"myfield1": 1,
"myfield2": {
"sourceColumnIndex": 2,
"valueMapName": "mymap"
}
"myfield3": 3
}
....
This will map the value before writing it to the target file / database. In case a value map does not contain a mapping for the current value an error is displayed.