ngervasi
ngervasi
Hi Brian, maybe it's faster if you do the change directly, I've never done a Pull request... but I promise I will start learning and contribute :)
You're right Vitaly, it's time to actively contribute to the project, I sent my pull requests but I didn't create the tests, I'm unsure about how to do that properly....
Unfortunately not, I'm very busy and I wasn't able to learn how to setup the test, if you have time have a look at my patch and feel free to...
Or even better just use double quotes in the sql for aliases and pass the parameters using the parameters array, this also protects you against SQL injections: ``` var sql...
You can use Winston for this: https://github.com/winstonjs/winston , let's keep node-postgres clean.
Well, I use quite a complex logging strategy (different loggers for console, error file and queries log) and since I use the connections pool I have to handle the error...
You have to specify the type like this: pg.types.setTypeParser(1700, function(val) { // NUMERIC return val === null ? null : parseFloat(val) }); pg.types.setTypeParser(20, function(val) { // INT8 if(val !== null...
I confirm: `callbackWaitsForEmptyEventLoop: false` is the way to go.
And send credentials over the wire? If you really want to skip the backend have a look at AWS Amplify and GraphQL.
let placeholders = []; myArgs.forEach((value,idx) => { placeholders.push('$'+(idx+1)) }); let query = `SELECT ... WHERE column IN (${placeholders.join(',')})` const {rows} = await dbPool.query(query, myArgs);