0

I need to access my data from postgreSQL database, but I don't know how to connect to it with JS. I don't want to use API for Web SQL database or similar.

1
  • After I googled "javascript postgres cordova" I got this result. Have you, by any chance, tried doing similar? Commented Nov 10, 2015 at 16:31

1 Answer 1

0

The answer you linked is essentially correct. In order to access your data on a server you need to provide an API to the DB via REST controllers or some other mechanism.

To summarise you would need to implement this chain:

Cordova App <---> Web Server <---> DB on Web Server

However, if you are just looking for a lightweight DB to use with your cordova application then you could try using this plugin.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.