Answers for "postgresql + nodejs"

0

postgresql nodejs

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()})()
Posted by: Guest on September-08-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language