Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@ const isGeneratedAsIdentity = ({ identity, type }) => {
* @param {{ start?: number, increment?: number, minValue?: number, maxValue?: number, cycle?: string }} param0
* @returns {string}
*/
const getIdentityOptions = ({ start, increment, minValue, maxValue, cycle }) => {
const getIdentityOptions = ({ start, increment, minValue, maxValue, cycle, cache, cacheValue, order }) => {
const startWith = start ? `START WITH ${start}` : '';
const incrementBy = increment ? `INCREMENT BY ${increment}` : '';
const minimumValue = minValue ? `MINVALUE ${minValue}` : '';
const maximumValue = maxValue ? `MAXVALUE ${maxValue}` : '';
const cacheOption = cacheValue ? `CACHE ${cacheValue}` : cache;

return [startWith, incrementBy, cycle, minimumValue, maximumValue].filter(Boolean).join(', ');
return [startWith, incrementBy, cycle, minimumValue, maximumValue, cacheOption, order].filter(Boolean).join(', ');
};

/**
Expand Down
60 changes: 59 additions & 1 deletion properties_pane/field_level/fieldLevelConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,6 @@ making sure that you maintain a proper JSON format.
"value": "decimal"
}
},

{
"propertyName": "Default",
"propertyKeyword": "default",
Expand Down Expand Up @@ -1237,6 +1236,65 @@ making sure that you maintain a proper JSON format.
]
}
}
},
{
"propertyName": "Cache",
"propertyKeyword": "cache",
"propertyTooltip": "Specify how many values of the sequence the database preallocates and keeps in memory for faster access. Specify NOCACHE to indicate that values of the sequence are not preallocated. If you omit both CACHE and NOCACHE, then the database caches 20 sequence numbers by default.",
"propertyType": "select",
"options": ["", "CACHE", "NO CACHE"],
"dependency": {
"type": "not",
"values": {
"type": "or",
"values": [
{
"key": "generated",
"exist": false
},
{
"key": "generated",
"value": ""
}
]
}
}
},
{
"propertyName": "Cache value",
"propertyKeyword": "cacheValue",
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "This integer value can have 28 or fewer digits. The minimum value for this parameter is 2.",
"minValue": 2,
"defaultValue": 20,
"dependency": {
"key": "cache",
"value": "CACHE"
}
},
{
"propertyName": "Order",
"propertyKeyword": "order",
"propertyTooltip": "Specify ORDER to guarantee that sequence numbers are generated in order of request. Specify NO ORDER if you do not want to guarantee sequence numbers are generated in order of request.",
"propertyType": "select",
"options": ["", "ORDER", "NO ORDER"],
"dependency": {
"type": "not",
"values": {
"type": "or",
"values": [
{
"key": "generated",
"exist": false
},
{
"key": "generated",
"value": ""
}
]
}
}
}
],
"dependency": {
Expand Down