3 ms·
I don't see "database" mentioned anywhere on that page. What direction are you going to head in with that?
by davidw 12y ago
I don't see "database" mentioned anywhere on that page. What direction are you going to head in with that?
- Havvy 12y agoYou can use whatever database `app` you want, such as Ecto.
- klibertp 12y agoIt will be a long time before you will actually need something other than Mnesia :)
- pmontra 12y agoI used Ecto in Phoenix to connect to PostgreSQL. I didn't try it to connect to anything else but I understand that it should work with most DBs.
- joshsharp 12y agoEcto and PostgreSQL seems the most mature option, though there's a Redis library and of course Mnesia. I haven't been able to find any support for MySQL.
- HashNuke 12y agoSomeone was trying to add MySQL support - https://github.com/elixir-lang/ecto/pull/193 https://github.com/elixir-lang/ecto/pull/193 It is possible to write an Ecto adapter for Riak, with some workarounds. I tried it once, but the motivation to continue...
- chrismccord 12y agoWe don't ship with any DB layer today, but Ecto is the defacto choice for sql. We are planning to include a Resource Protocol, so it should be very easy to bring your own DB/model layer and still get all the nice conventional route builders, forms, etc.
- bratsche 12y agoAs others have said, Ecto is the layer you would use to connect to Postgresql. It's pretty different from ActiveRecord, not necessarily in good or bad ways. It's just different. Rather than try to give examples, take a look at their Github page: https://github.com/elixir-lang/ecto https://github.com/elixir-lang/ecto