Can node-oracledb be used in Mobile Hub Custom APIs?
Content
From within my Mobile Hub Custom APIs I need to be able to directly access an Oracle DB instance using Basic authentication. As per the Oracle Mobile Platform videos on youtube, I added the oracledb package as a dependency:
{
"name": "patients",
"version": "1.0.0",
"description": "API to handle getting, adding, and updating of patient records.",
"main": "patients.js",
"dependencies": {
"oracledb": "3.1.2"
},
"oracleMobile": {
"dependencies": {
"apis": {},
"connectors": {}
}
}
}
I then executed "npm install" within the package folder, and it completed without error, and generated a package-lock.json file:
{
"name": "patients",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"oracledb": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/oracledb/-/oracledb-3.1.2.tgz