sjy-ecos/model/conn/pg_eco.js

13 lines
229 B
JavaScript

var pg = require('pg');
exports.connTest = function () {
pg.connect(Connections.pg_sjy_eco, function (err, db) {
if (err) {
console.log(err);
process.exit(0);
} else {
console.log('sjy_eco conn ok !');
}
});
};