DbPool.disconnect()

NES3+Syntax

							DbPool.disconnect()

Description

The disconnect method of the DbPool object disconnects all connections to a database within that pool.

Example

Listing 8.60 creates a connection to an Oracle database. The next line drops the connection by using the disconnect() method.

Listing 8.60 Disconnecting from a Database Using the disconnect() Method
<SERVER>

// Create a pool of connections
var myPool = new DbPool("ORACLE", "mySID", "myApp", "appsPWD", "myTNS");

// Drop the connections
myPool.disconnect();

</SERVER>
						

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.