@sap/xsodata
Version:
Expose data from a HANA database as OData V2 service with help of .xsodata files.
19 lines (15 loc) • 425 B
JavaScript
;
exports.createGenKeyProperty = function (genKeyName) {
return {
COLUMN_NAME: genKeyName,
LENGTH: 2147483647,
DATA_TYPE_NAME: 'VARCHAR',
IS_NULLABLE: 'FALSE'
};
};
exports.createGenKeyValue = function (index) {
return '' + Date.now() + (index + 1);
};
exports.createBoundary = function (context) {
return '' + Date.now() + '_' + context.getNextKeyCounter();
};