Conncetion to a relational database with ionic

Hello!
I would like to connect my app to a relational database such as MySQL or PostgreSQL. Can anybody help me do that?
Thank you

i think you should do it by web service :wink:

You mean sending the data to a php page for example to perform the database transaction?

exactly you dont have to work with db but with api that lets you interact with db through api call