Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions lib/postgresql.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,17 @@ function PostgreSQL(postgresql, settings) {
// this.name = 'postgresql';
// this._models = {};
// this.settings = settings;

// TSETO
// FIXME
// 1. in postgresql.conf
// max_connections = 500 # (change requires restart)
// 2. db: strongloop, schemas: public ===> strongloop
// 3. db: strongloop, schemas: strongloop, tables: inventorytest ===> inventory
// 4. postgresql.setMaxListeners(Infinity)
postgresql.setMaxListeners(Infinity);
//
//
this.constructor.super_.call(this, 'postgresql', settings);
this.clientConfig = settings;
if (settings.url) {
Expand Down
8 changes: 4 additions & 4 deletions test/postgresql.mapping.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ var async = require('async');

var db;

before(function() {
db = getSchema();
});

describe('Mapping models', function() {
before(function() {
db = getSchema();
});

it('should honor the postgresql settings for table/column', function(done) {
var schema =
{
Expand Down
2 changes: 1 addition & 1 deletion test/postgresql.transaction.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var db, Post;

describe('transactions', function() {
before(function(done) {
db = getDataSource(true);
db = getDataSource();
Post = db.define('PostTX', {
title: {type: String, length: 255, index: true},
content: {type: String},
Expand Down