@fullstack-one/db

v0.5.38
fullstack.one db connector package

@fullstack-one/db

Packages for managing connections to Postgres

This package includes a service for a postgres pool, called DbGeneralPool. The pool is used for GraphQl requests. Morover this package includes an ORM subpackage based on typeorm, which has its own pool. Other packages and the application can use the query runners of ORM using const queryRunner = orm.createQueryRunner(); await queryRunner.connect(); queryRunner.query("SELECT ...").

The pool size is gracefully adjusted depending on the number of connected nodes using @fullstack-one/events.

npm i @fullstack-one/[email protected]

Metadata

  • MIT
  • Whatever
  • Unknown
  • released 8/30/2019

Downloads