Skip to content

A way to close connection with pool #40

@long-kr

Description

@long-kr

Description

Hello, Is there a way for me to close connection with pool manually?

Why

I'm writing a test with wrapper and after finishing test. Jest yells at me about leaking memory because I didn't close connection with pool ( I use real time database to run test ). I wonder if there is a way I can close the connection after test manually?

Alternatives

I tried to create pool with Pool from "pg" then added to rate-limit and and pool.end() after the test but the test was failed because it didn't connect to database.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions