How to query a database via Haxe? (Targeting HTML5)

I’m hoping to query a database (theoretically MySQL/Postgres, but I’m not attached to those platforms, I’m willing to go with whatever people have had the most luck with), via my Haxe project that targets HTML5 distribution.

I have tried using the ‘orm’ package via haxelib, but this relies on ‘sys’ which cannot be referenced when targeting javascript/html5.

Any direction here would be hugely helpful, thank you so much!

If you are targeting html5, you will need to have a server that acts as an intermediary (using PHP or whichever backend language you prefer). The html5 application sends a request to the server, the server queries to MySQL/Postgres, and then the server returns a result to your html5 application.