Constant (ConstantGenerator)
The Constant generator does not support linking or consistency. You cannot configure differential privacy.
The
constant
field specifies the value to use to populate the column.{
"presetId": "string",
"generatorId": "ConstantGenerator",
"schema": "string",
"table": "string",
"column": "estring",
"dataType": "string" //MongoDB only
"metadata": {
"constant": "string"
},
"encryptionProcessor": "x-on", //To use configured Tonic data encryption
"customValueProcessor": "string" //If custom value processor applied
}
In the following example replacement, the
education-num
column value is replaced by the value 10
.{
"name": "education-num",
"schema": "public",
"table": "users",
"links": [
{
"presetId": "ConstantGenerator",
"generatorId": "ConstantGenerator",
"schema": "public",
"table": "users",
"column": "education-num",
"metadata": {
"constant": "10"
}
}
]
}
Last modified 2mo ago