sane format as forecast project
This commit is contained in:
parent
db0261bf45
commit
eff31d5a72
18
script.js
18
script.js
@ -1,18 +1,6 @@
|
|||||||
const { Pool, Client } = require('pg')
|
const pg = require('pg')
|
||||||
/*
|
|
||||||
const pool = new Pool({
|
const client = new pg.Client({
|
||||||
user: 'api',
|
|
||||||
host: '192.168.1.110',
|
|
||||||
database: 'ubm',
|
|
||||||
password: 'qqqx53!028',
|
|
||||||
port: 5433,
|
|
||||||
})
|
|
||||||
pool.query('SELECT NOW()', (err, res) => {
|
|
||||||
console.log(err, res)
|
|
||||||
pool.end()
|
|
||||||
})
|
|
||||||
*/
|
|
||||||
const client = new Client({
|
|
||||||
user: 'api',
|
user: 'api',
|
||||||
host: '192.168.1.110',
|
host: '192.168.1.110',
|
||||||
database: 'ubm',
|
database: 'ubm',
|
||||||
|
Loading…
Reference in New Issue
Block a user