{ } qjs-modules

db

Source: lib/db.js (pure JS)

A small connection-pool abstraction over a database client (e.g. the mysql / pgsql bindings).

Exports

ExportKindDescription
PoolclassManages a pool of connections; hands out PoolClients and runs queries.
PoolClientclassA 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()