#Need Help: Database issues in NativePHP iOS (pgsql extension)

1 messages · Page 1 of 1 (latest)

swift hare
#

Update: I made some progress!

It turns out the blank page issue was caused by having nativephp/laravel installed — I had added it earlier while trying to configure an external PostgreSQL database. After removing the nativephp/laravel package, the blank screen issue is gone!

However, I’m now getting the following error:

could not find driver (Connection: pgsql, SQL: select * from "sessions" where "id" = 4d3PBwSM9WqqacCYmYhtOUvfNChmzWKNmhr5FaZk limit 1)

It looks like the app still can’t connect to the PostgreSQL database. Do I need to install something specific to enable the pgsql driver in the NativePHP environment?

Thanks again for your help!

swift hare
#

Need Help: Database issues in NativePHP iOS (pgsql extensions)

#

Need Help: Database issues in NativePHP iOS (pgsql extension)

mint basin
#

There is no mysql /pgsql support for NativePHP - this is as a measure of security. In order to hit a mysql db externally you would have to put prod credentials in the app, which can be hacked (technically).
DON'T DO THIS - Make an API layer. This is the standard for mobile app development.

crimson python
#

I'm encountering an error in NativePHP Desktop. So, if only my client is using this application and they have an existing local MySQL/PostgreSQL database, I won't be able to connect to it? In that case, should I create an API beforehand?