Best Golang ORM

polaris · · 1266 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>I&#39;m looking for the best Golang ORM that supports Postgres.</p> <p>I&#39;ve found a few so far. These have a lot of stars and are old projects. Just wondering if there&#39;s anything newer that is also worth checking out as well?</p> <p><a href="https://github.com/coopernurse/gorp" rel="nofollow">https://github.com/coopernurse/gorp</a></p> <p><a href="https://github.com/jinzhu/gorm" rel="nofollow">https://github.com/jinzhu/gorm</a> </p> <p><a href="https://github.com/lunny/xorm" rel="nofollow">https://github.com/lunny/xorm</a></p> <p>There might be others that I&#39;ve missed. Which of these (or others) do you think is better and why?</p> <hr/>**评论:**<br/><br/>tzmg: <pre><p>I&#39;ve used <a href="https://github.com/jinzhu/gorm" rel="nofollow">https://github.com/jinzhu/gorm</a> quite a bit and loving it (with Postgres)</p></pre>neoasterisk: <pre><p>I am interested in this subject as well. I am considering using Go for a new project and I am evaluating what to use for database access. Postgres will probably be the database. I am considering std library vs some kind of orm library.</p> <p>May I ask how come you decided to go for an orm library vs the std lib?</p></pre>vegax87: <pre><p>there&#39;s another ORM called SQLBoiler: <a href="https://github.com/vattle/sqlboiler" rel="nofollow">https://github.com/vattle/sqlboiler</a></p> <p>This ORM is tailored to your database schema instead of the classic &#34;code-first&#34; approach like gorm\gorp\xorm</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

1266 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传