Check out example codes for "power bi connect to postgresql". It will help you in understanding the concepts better.

Code Example 1

Driver={PostgreSQL ANSI(x64)}; Server=localhost; Port=5433; Database= my_database

Learn ReactJs, React Native from akashmittal.com