Search
⌃K
Links

Alphanumeric String Key (AlphaNumericPkGenerator)

The Alphanumeric String Key generator can be applied to primary key columns. It generates unique alphanumeric strings of the same length as the input. For example, for the origin value ABC123, the output value is a six-character alphanumeric string such as D24N05.
The Alphanumeric String Key generator can be self-consistent, but not consistent with another column. You cannot configure differential privacy.
The metadata object is populated from the BaseMetadata object.
There is no generator-specific configuration.
{
"presetId": "string",
"generatorId": "AlphaNumericPkGenerator",
"schema": "string",
"table": "string",
"column": "string",
"metadata": {
"isConsistent": boolean
},
"encryptionProcessor": "x-on", //To use configured Tonic data encryption
"customValueProcessor": "string" //If custom value processor applied
}

Example replacement

The following example replacement configures a column to use the built-in generator preset for the Alphanumeric String Key generator. The generator is not consistent.
{
"name": "workclass",
"schema": "public",
"table": "employees",
"links": [
{
"presetId": "AlphaNumericPkGenerator",
"generatorId": "AlphaNumericPkGenerator",
"schema": "public",
"table": "employees",
"column": "workclass",
"metadata": {
"isConsistent": false
}
}
]
}