Skip to content

new keyword or not ? #1077

@Brakkar

Description

@Brakkar

Hi,
should I use this:

let pg = require( 'pg' ).native

const dbPool = new pg.Pool( dbConfig) 

// or this (without new keyword) ?

const dbPool = pg.Pool( dbConfig) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions