diff --git a/lib/postgresql.js b/lib/postgresql.js index f7013bb2..c09a02c2 100644 --- a/lib/postgresql.js +++ b/lib/postgresql.js @@ -88,6 +88,9 @@ function PostgreSQL(postgresql, settings) { // Inherit from loopback-datasource-juggler BaseSQL util.inherits(PostgreSQL, SqlConnector); +// Expose node-postgres directly on the connector for easy access in applications +PostgreSQL.prototype.postgresql = postgresql; + PostgreSQL.prototype.debug = function() { if (this.settings.debug) { debug.apply(debug, arguments);