Closed wahmedswl closed 7 years ago
Hi, it would be great to have Promise based examples. Currently, i have looked but not able to find any example which is utilizing Promises. Official driver do have examples
oracledb.getConnection({ user: "user", password: "password", connectString: "tns" }).then(function (connection) { return connection.execute( "SELECT USER FROM DUAL" ).then(function (result) { console.log(result.metaData); console.log(result.rows); return connection.close(); }).catch(function (err) { console.log(err.message); return connection.close(); }); }).catch(function (err) { console.error(err.message); });
Thanks
ya, I can add some.
Thanks :-)
added more examples for many of the apis (not all). hope it clears things up.
Problem Description
Hi, it would be great to have Promise based examples. Currently, i have looked but not able to find any example which is utilizing Promises. Official driver do have examples
Code Example
Thanks