Answers for "how to connect next js with postgresql localhost"

0

how to connect next js with postgresql localhost

const pgp = require('pg-promise')();

// Get the values for these variables from configuration
const user = ...
const password = ...
const host = ...
const port = ...
const database = ...

const db = pgp(`postgres://${user}:${password}@${host}:${port}/${database}`)
Posted by: Guest on October-29-2020

Code answers related to "how to connect next js with postgresql localhost"

Code answers related to "Javascript"

Browse Popular Code Answers by Language