Go/Beego migartion tools

polaris · · 643 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>I come from Ruby On Rails background and want to create API using Go (Beego to be specific, please do not try to convince me to not use framework because it is not the &#39;Go way&#39;™), but from what I have seen database management tools are not really mature yet, or am I missing something? I opted out from Beegos ORM because of its lack of migration tools (manually dropping tables/deleting columns, no real versioning etc). I think the other pretty mature ORM is <a href="https://github.com/jinzhu/gorm" rel="nofollow">Gorm</a>, but it lacks migartions/schema management tools I got to used to in Ruby On Rails. The only one thing that reminds me of ActiveRecords features is <a href="https://bitbucket.org/liamstask/goose/" rel="nofollow">goose</a> - does anyone have experience using it, and if so, is it good? Or even better, using it with beego? Any other suggestions are welcome.</p> <hr/>**评论:**<br/><br/>kpurdon: <pre><p>Seriously check out <a href="https://gobuffalo.io/docs/getting-started" rel="nofollow">https://gobuffalo.io/docs/getting-started</a> ... I&#39;m not telling you this because &#34;beego is not the go way&#34;, rather because you say you want something like Rails w/ migration, an ORM, and all the other stuff ready to go. Buffalo provides that.</p> <p>You are correct that db migration in Go is a bit immature right now. <a href="https://github.com/mattes/migrate" rel="nofollow">https://github.com/mattes/migrate</a> or <a href="https://github.com/pressly/goose" rel="nofollow">https://github.com/pressly/goose</a> mostly work, but definitely, have their issues. Buffalo implements their own migration tooling <a href="https://github.com/markbates/pop/blob/master/fizz%2FREADME.md" rel="nofollow">https://github.com/markbates/pop/blob/master/fizz%2FREADME.md</a> that you can use on your own.</p></pre>Kubczi: <pre><p>well, It actually looks pretty solid, definetly gonna give it a try, thanks!</p></pre>

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

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