From 3cad370dbb7c7150bcc57ebe5d077f2847318eb6 Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Mon, 23 Oct 2017 13:06:38 +1100 Subject: [PATCH] Why have two similar examples? --- doc/api.md | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/doc/api.md b/doc/api.md index 7e73600b..3f92c851 100644 --- a/doc/api.md +++ b/doc/api.md @@ -2518,29 +2518,10 @@ See [Streaming Query Results](#streamingresults) for more information. ## 8. Connection Handling -In applications which use connections infrequently, create a connection -with [`oracledb.getConnection()`](#getconnectiondb): - -```javascript -var oracledb = require('oracledb'); - -oracledb.getConnection( - { - user : "hr", - password : "welcome", - connectString : "localhost/XE" - }, - function(err, connection) - { - if (err) { console.error(err.message); return; } - - . . . // use connection - - }); -``` - -Connections should be released with [`connection.close()`](#connectionclose) when no -longer needed: +In applications which use connections infrequently, create a +connection with [`oracledb.getConnection()`](#getconnectiondb). +Connections should be released with +[`connection.close()`](#connectionclose) when no longer needed: ```javascript var oracledb = require('oracledb');