ErlyORM / boss_db

BossDB: a sharded, caching, pooling, evented ORM for Erlang
Other
277 stars 137 forks source link

Elixir #117

Closed tristanoneil closed 11 years ago

tristanoneil commented 11 years ago

Is it possible to use BossDB with Elixir? I believe I've managed to initialize it with the following.

defmodule Database do
  db_options = [{:adapter, :mock}]
  :boss_db.start(db_options)
  :boss_news.start()
end

However how to go about defining a model is escaping me. I've tried defining an Elixir module as well as an Elixir record with no success. This may be outside of the scope of this project but some documentation surrounding this could be helpful if it is possible.

evanmiller commented 11 years ago

There is no support for writing model files with Elixir. You might look into the Ecto project, though:

https://github.com/elixir-lang/ecto