sjy-ecos/model/conn/pg_eco.js

13 lines
229 B
JavaScript
Raw Normal View History

2016-12-23 10:16:12 +00:00
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 {
2017-01-09 08:41:53 +00:00
console.log('sjy_eco conn ok !');
2016-12-23 10:16:12 +00:00
}
});
};