How to connect my project to a PostgreSQL database?

Hello developers, I'm new to this world of xcode and I'm really liking it a lot, I could jump some obstacles but I was presented with a problem that I could not solve.

The issue is that I want to connect to a database that I have in the servers of my company, which are with PostgreSQL, to make queries of the different tables, to also make a login for those who will use my application.

I would like that you could help me with some information to be able to make my project connect to this database and be able to perform SQL queries.

Thank you!

That's a vast question, much too general to be replied here.


Have a look at tutorials, like

h ttps://www.simplifiedios.net/swift-sqlite-tutorial/


And if you have a specific quesytion, come back to the forum.

You will need to find a PostgreSQL client library for your platform and use that. Start with a demo or example. Then try connecting to your company's data with your demo. Then you can integrate your demo code into whatever app you are working with.

Thank you very much for your answers!.

Sure, I have a project which we say is the "demo" which I want to connect to the Postgres database, the problem is that I do not get that library that you mention, I've been looking for information everywhere and I do not get to nothing. The information that I have obtained is very old. I tried to find some support for this in CocoaPods but I could not get something compatible with PostgreSQL.

I think my doubts are enough, but to begin to solve them my question is quite specific.

Honestly I am not someone who seeks help in the forum, but in the face of ignorance of the subject, you have to consult those who know and this is a trivial subject for you.

Thank you!

How to connect my project to a PostgreSQL database?
 
 
Q