db
Source: lib/db.js (pure JS)
A small connection-pool abstraction over a database client (e.g. the
mysql / pgsql bindings).
Exports
| Export | Kind | Description |
|---|---|---|
Pool | class | Manages a pool of connections; hands out PoolClients and runs queries. |
PoolClient | class | A single checked-out connection: query(), release(). |
Export list
Generated by utilities/doc-api.js from the db dump of utilities/api-surface.sh: 12 members. Edit the text above this block, not the block.
Pool
class, constructible
- methods:
connect(),end(),list() - properties:
available (get),size (get),[Symbol.toStringTag]
PoolClient
class, constructible
- methods:
query(),release()