什么好的orm api会很好地与scala或erlang工作 [英] what good orm api will work well with scala or erlang
问题描述
Erlang不是面向对象的,所以你想要尝试和打破一些像ORM库一样黑客,这些都是因为关系数据库和OO之间存在严重的阻抗不匹配。 Erlang也会有同样的错配。 Mnesia更是一个分层数据库,该模型与Erlang等功能语言一起工作良好。 ORM库并不是全部,尤其不是Erlang。
I'm considering taking up scala programming but i'm really concerned about what will become of my ORM based applications. I currently use hibernate as my ORM and i find it a really reliable tool. I'd like to know if there's any ORM tool as efficient but written in scala, or will hibernate work seamlessly with it. i don't want to have to start writing endless sql queries again (like the days of JDBC). I also have the same thought about erlang. is there a good orm out there for erlang?? and can i use erlang with other DBMS like oracle and mysql with ORM
Erlang isn't object oriented so why would you want to try and shoehorn something as hacky as an ORM library, which all of them all because there is a severe impedance mismatch between Relational Databases and OO. The same mismatch would be there as well with Erlang. Mnesia is more of a hierarchical database and that model works well with a functional language like Erlang. ORM libraries are not the end all be all, especially not for Erlang.
这篇关于什么好的orm api会很好地与scala或erlang工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!