Updated Home (markdown)

vesai 2017-01-17 00:58:08 +03:00
parent 300bcc387a
commit 1821843a6b

@ -26,9 +26,9 @@ var Pool = require('pg').Pool
var pool = new Pool()
http.createServer(function(req, res) {
pool.query('SELECT $1::text as name', ['brianc'], function(err, res) {
pool.query('SELECT $1::text as name', ['brianc'], function(err, result) {
res.writeHead({'content-type': 'text/html'})
res.end('Hello from: ' + res.rows[0].name)
res.end('Hello from: ' + result.rows[0].name)
})
})
```