I have searched the internet for drivers to connect to either database and all the projects I have seen have either been dead for a long time, look incomplete, or don't have good enough documentation to be usable without reading all the source.
Has anyone used Erlang to talk to either MySQL or PostgreSQL before and what sort of package did you use to do this?
Yariv's mysql driver seems to be the best available: http://code.google.com/p/erlang-mysql-driver/
http://yarivsblog.com/articles/2006/09/13/erlang-mysql-driver-reloaded/
I haven't personally used it as my erlang projects mostly talk to redis, but my quick scan of the source didn't reveal anything too terrifying.
Maturity is a relative thing, especially for more esoteric languages like erlang.
Will Glozer wrote a nice native PostgreSQL client:
http://github.com/wg/epgsql
Erlang pgsql - The pgsql-driver is a 100% erlang implementation of the Postgres Frontend/Backend protocol.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With