@fullstack-one/db

fullstack.one db connector package

Stats

StarsIssuesVersionUpdatedCreatedSize
@fullstack-one/db
38240.7.143 months ago4 years agoMinified + gzip package size for @fullstack-one/db in KB

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.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.