Skip to content

Commit 3222ef3

Browse files
committed
Cleanup example/version.js file
1 parent ad795ca commit 3222ef3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

examples/version.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ async function run() {
6767
try {
6868
connection = await oracledb.getConnection(dbConfig);
6969

70-
console.log("Oracle Database version : ", connection.oracleServerVersionString);
71-
// console.log("Oracle Database version : ", connection.oracleServerVersion); // numeric version format
70+
console.log("Oracle Database version :", connection.oracleServerVersionString);
71+
// console.log("Oracle Database version :", connection.oracleServerVersion); // numeric version format
7272

7373
const result = await connection.execute(
7474
`SELECT UNIQUE CLIENT_DRIVER
7575
FROM V$SESSION_CONNECT_INFO
7676
WHERE SID = SYS_CONTEXT('USERENV', 'SID')`);
77-
console.log("CLIENT_DRIVER : " + result.rows[0][0] + "'");
77+
console.log("CLIENT_DRIVER :", result.rows[0][0].replace(': ', ''));
7878

7979
} catch (err) {
8080
console.error(err);
@@ -92,13 +92,13 @@ async function run() {
9292
console.log("Run at : " + new Date());
9393
console.log("Node.js version : " + process.version + " (" + process.platform, process.arch + ")");
9494

95-
console.log("Node-oracledb version : ", oracledb.versionString); // version (including the suffix)
96-
// console.log("Node-oracledb version : ", oracledb.version); // numeric version format is useful for comparisons
97-
// console.log("Node-oracledb version suffix : ", oracledb.versionSuffix); // e.g. "-beta.1", or empty for production releases
95+
console.log("Node-oracledb version :", oracledb.versionString); // version (including the suffix)
96+
// console.log("Node-oracledb version :", oracledb.version); // numeric version format is useful for comparisons
97+
// console.log("Node-oracledb version suffix :", oracledb.versionSuffix); // e.g. "-beta.1", or empty for production releases
9898

9999
if (process.env.NODE_ORACLEDB_DRIVER_MODE === 'thick') {
100-
console.log("Oracle Client library version : ", oracledb.oracleClientVersionString);
101-
// console.log("Oracle Client library version : ", oracledb.oracleClientVersion); // numeric version format
100+
console.log("Oracle Client library version :", oracledb.oracleClientVersionString);
101+
// console.log("Oracle Client library version :", oracledb.oracleClientVersion); // numeric version format
102102
}
103103

104104
run();

0 commit comments

Comments
 (0)