communicating with postgres database for desktop,web, macOS, android...

so far I’ve read about npgsql by mono that supports postgres database, but that is .NET and won’t be able to use it for Mac OS or other platforms. Is there any solution for this?

Regards,

Use the WWW and WWWForm APIs to talk to a remote web server, and have that server talk to your database using PHP, or whatever flavour of web tools you prefer.