Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a mature way to interface Erlang and PostgreSQL or MySQL? [closed]

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?

like image 567
samoz Avatar asked Jun 20 '10 00:06

samoz


3 Answers

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.

like image 21
Ben Hughes Avatar answered Sep 22 '22 08:09

Ben Hughes


Will Glozer wrote a nice native PostgreSQL client:

http://github.com/wg/epgsql

like image 144
gleber Avatar answered Sep 21 '22 08:09

gleber


Erlang pgsql - The pgsql-driver is a 100% erlang implementation of the Postgres Frontend/Backend protocol.

like image 34
0xAX Avatar answered Sep 24 '22 08:09

0xAX