Skip to content

Close database connection after build is finished #21

@m4v15

Description

@m4v15

Here:

console.log("Success!");

It's a good idea to close the connection once you have built otherwise your code will 'hang' (do you know what this means?

You need the connection.end() see the docs here (in your case, pool in the docs refers to your db_connection) https://node-postgres.com/api/pool#pool-end

Ask me if you get stuck here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions