DbPool.connect()

NES3+Syntax

							DbPool.connect(dbType, dbInstance, uid, pwd, dbName)

DbPool.connect(dbType, dbInstance, uid, pwd, dbName, maxConn)

DbPool.connect(dbType, dbInstance, uid, pwd, dbName, maxConn, commitFlag)

Description

The connect method of the DbPool object is used to connect to a database when the connection was not made with the initialization of the original DbPool object. The method takes all the parameters necessary to connect to the database. Each parameter is defined in Table 8.11.

Table 8.11. Parameters of the connect() Method
ParameterDescription
dbTypeThe type of database it is. Possible values are: ORACLE, SYBASE, INFORMIX, DB2, or ODBC.
dbInstanceThis is the instance name of the database. For ODBC it is the DSN entry ...

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.