I am using the "pg" module to handle postgresql db, how to call a function using pg I doubt
I call the function using the request method,
client.query("SELECT * FROM SQSP_IsUserNameExists($1)",[userName], function(err, result) {
which works fine, but this is the correct way to call postgresql functions.
source share