-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Milestone
Description
Before:
const { Client } = require('pg')
const client = new Client()
await client.connect()
const res = await client.query('SELECT $1::text as message', ['Hello world!'])
console.log(res.rows[0].message) // Hello world!
await client.end()
After:
const { Client } = require('pg')
const client = new Client()
(async () => {
await client.connect()
const res = await client.query('SELECT $1::text as message', ['Hello world!'])
console.log(res.rows[0].message) // Hello world!
await client.end()
})();
Meta: Are the docs open sourced? Do you accept fixes from the community?
tlhunter, eklam and andriyor
Metadata
Metadata
Assignees
Labels
No labels