Connection
NES3+Syntax
Core object is created when the DbPool.connection() method is called.
Description
The Connection object represents a given connection, pulled from a "pool", to a database. This object has only one property, the prototype property, which you can use to add properties to the object. Table 8.3 shows the methods associated with this object.
Note
If you only need a single connection to the database and do not need to create a pool, use the database object for your connection.
Method | Description |
---|---|
beginTransaction() | Begins a new SQL transaction |
commitTransaction () | Commits the current SQL transaction |
connected() | Tests to see if the pool connection is connected to the database |
cursor() | Creates ... |
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.