fetch

How to Connect Node js to PostgreSQL Database and Fetch data

0:00
↔️ ↕️

Timecodes:

my name is kinds on the tech pro and in

the previous tutorial i showed you how

to

connect nodes.js to mysql database and

fetch data and as you can see right here

but today i'm going to show you how to

connect node.ds to postgrew sql so here

is my postgresql

i have the default database here and i

have a table inside

i'm going to just open the schemas and

go to these tables called

users and i'm going to save you edit

data and select all rows you can see

there are about three items

or four items in this place so how do we

connect from node.js here

to postgresql and actually fetch and

display the data on the screen on the

console

so the first thing i'd like to do let me