@fullstack-one/db
v0.7.17
Published
fullstack.one db connector package
Downloads
78
Readme
@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
.