myt/exporters/function.js

28 lines
594 B
JavaScript
Raw Normal View History

2022-02-02 04:05:31 +00:00
module.exports = {
schemaCol: 'db',
2022-02-07 14:43:12 +00:00
nameCol: 'name',
escapeCols: [
'comment'
],
defaults: {
returns: 'INT',
isDeterministic: 'NO'
},
2022-02-07 14:43:12 +00:00
formatter(params) {
let dataAccess;
switch(params.dataAccess) {
case 'NO_SQL':
dataAccess = 'NO SQL';
break;
case 'READS_SQL_DATA':
dataAccess = 'READS SQL DATA';
break;
case 'MODIFIES_SQL_DATA':
dataAccess = 'MODIFIES SQL DATA';
break;
}
params.dataAccess = dataAccess;
}
2022-02-02 04:05:31 +00:00
};