How do I make a connection with postgres?

I want to create a simple API that uses Postgres in the database. But I’m having difficulty finding enough resources to do that. Can someone help me with this?

I recommend the pq library. Documentation can be found at

Try it, it is ieas to use! If you have any problems, come back.

Try this:

It uses the pq library like @lutzhorn mentioned with config file.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.