From 738c966112c8ea5d18babce81e944b6b691dd39f Mon Sep 17 00:00:00 2001 From: "Guillermo A. Sanchez" Date: Sat, 29 Jun 2013 14:46:45 -0700 Subject: [PATCH] Add default value for connection host. Native binding connection tests will fail if the PGHOST environment variable is not set. There already exists several defaul values for user, password and port. It would make sense to have a default host setting as well - localhost appears to be a reasonable default. --- lib/defaults.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/defaults.js b/lib/defaults.js index d15a5b7..d7fe17c 100644 --- a/lib/defaults.js +++ b/lib/defaults.js @@ -1,4 +1,7 @@ module.exports = { + // database host defaults to localhost + host: 'localhost', + //database user's name user: process.env.USER,