3 ms·
Being a fan of Play Framework, this could finally represent an opportunity for me to dig into Go. I regret the absence of an ORM, but will give it a 'go' (...)
by moystard 14y ago
Being a fan of Play Framework, this could finally represent an opportunity for me to dig into Go. I regret the absence of an ORM, but will give it a 'go' (...) anyway.
PS: I regret that no performance analysis nor benchmarks are presented on the project page. It could be nice to have a comparison with Play on that domain.
- robfig 14y agoI did not package an "official" ORM with Revel because I did not feel like there was a clear choice yet. (And making an ORM is too big a challenge to bite off in addition :) I think that GORP is the current leader (https://github.com/coopernurse/gorp https://github.com/coopernurse/gorp), and it is pretty easy to make a plugin/interceptor that initializes it and starts/ends transactions before / after requests. I am planning on adding an example of this to the samples in the near future.
- moystard 14y agoI will have a look at gorp. Thank you for your answer.
- luriel 14y agoIf you need an ORM with Go you are probably _doing it wrong_. ORMs make little sense other than to make flawed OO type systems match relational databases. Just do it right from the start: use a database model that matches your application.