This commit is contained in:
2023-10-17 16:30:56 -04:00
parent a3ee24800c
commit 956bc23ee4
5 changed files with 53 additions and 2 deletions

7
test.js Normal file
View File

@@ -0,0 +1,7 @@
import { Client } from '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()