Skip to content

Commit 7b89861

Browse files
zero5100ssh24
authored andcommitted
Expose node-postgres directly on the connector
1 parent ce88756 commit 7b89861

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/postgresql.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ function PostgreSQL(postgresql, settings) {
8888
// Inherit from loopback-datasource-juggler BaseSQL
8989
util.inherits(PostgreSQL, SqlConnector);
9090

91+
// Expose node-postgres directly on the connector for easy access in applications
92+
PostgreSQL.prototype.postgresql = postgresql;
93+
9194
PostgreSQL.prototype.debug = function() {
9295
if (this.settings.debug) {
9396
debug.apply(debug, arguments);

0 commit comments

Comments
 (0)