Skip to content

Question: Is there a way to check if a connection is connected? #1981

Open
@john1625b

Description

@john1625b

I am making a health check endpoint for kubernetes (google cloud's service to host containerized applications) for my mySql application.

right now I am using this package https://www.npmjs.com/package/health-check-mysql

But is there something built into the package itself, something like a isConnected method. ie:
connection.isConnected() ? throw new Error('not connected to mysql') : null

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions