Client abstraction to manage connections to the database, at the moment,
only using an internal connection pool.
Example
Methods
-
close()
-
Client destructor (closes and cleans up all the connections in the pool).
Returns:
- Type
- Promise
Example
-
getSession()
-
Create a new session using a connection from the pool (if one is available).
Returns:
The active session instance.- Type
- Promise.<Session>
Example
Type Definitions
-
Properties
-
Extended client options.
Type:
- Object
Properties:
Name Type Argument Description pooling
module:ConnectionPool~Properties <optional>
connection pool configuration