Erlang Mailing Lists

Author Message

<  Erlang Web mailing list  ~  [Erlangweb-users] Is it possible to use PostgreSQL in Erlang

fjanon
Posted: Tue Oct 13, 2009 3:30 am Reply with quote
Joined: 09 Oct 2009 Posts: 4
Hi,

I would like to do a proof of concept project with Erlang Web, but I need Postgres. Is it possible to use Postgres from Erlang web?

Thanks

Fred


Post received from mailinglist
View user's profile Send private message
ngocdaothanh
Posted: Tue Oct 13, 2009 4:11 am Reply with quote
User Joined: 06 Dec 2008 Posts: 43
epgsql is a very good PostgreSQL driver for Erlang:
http://bitbucket.org/will/epgsql/overview/


On Tue, Oct 13, 2009 at 12:29 PM, Fred Janon <fjanon@gmail.com> wrote:
> Hi,
>
> I would like to do a proof of concept project with Erlang Web, but I need
> Postgres. Is it possible to use Postgres from Erlang web?
>
> Thanks
>
> Fred
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Erlangweb-users mailing list
> Erlangweb-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/erlangweb-users
> http://www.erlang-web.org/
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Erlangweb-users mailing list
Erlangweb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlangweb-users
http://www.erlang-web.org/
Post received from mailinglist
View user's profile Send private message Send e-mail
michal
Posted: Thu Oct 15, 2009 8:46 am Reply with quote
User Joined: 20 Jul 2006 Posts: 44 Location: London
Hi,

On 13 Oct 2009, at 05:29, Fred Janon wrote:
> I would like to do a proof of concept project with Erlang Web, but I
> need Postgres. Is it possible to use Postgres from Erlang web?

Erlang Web supports Mnesia and CouchDB databases at the moment (both
being Erlang based), however there is already a layer of abstraction
that allows implementing interfaces of other databases as well.

The way it works is that all queries to the database should go through
the e_db.erl API. Then the database callback module is called. The
callback module can be configured in the project.conf file and can be
read using e_conf:dbms(). You can read more here http://wiki.erlang-web.org/DBMS

Using Postgres from Erlang Web would require developing a simple
e_db_postgres.erl call back module, from which you would call one of
the existing Postgres drivers for Erlang (see the other email in this
thread). If you would need some help with developing such callback
module, let us know.

Michal

--
Michal Slaski
http://www.erlang-consulting.com

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Erlangweb-users mailing list
Erlangweb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlangweb-users
http://www.erlang-web.org/
Post received from mailinglist
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum