Embeddable database for go?

xuanbao · · 1348 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Is there any self-contained/embeddable datastore/database for go? Like derby, h2 or HSQLDB for Java? Or any other suitable way to include database-like features for your software as dependency free? Or should I try to include sqlite?</p> <hr/>**评论:**<br/><br/>koalainthetree: <pre><p><a href="https://github.com/boltdb/bolt">https://github.com/boltdb/bolt</a> might be worth looking into. </p></pre>saturation: <pre><p>Thank you! I have to admit, I tried with wrong google query. I found old thread about this subject: <a href="https://www.reddit.com/r/golang/comments/2f730k/can_anyone_recommend_a_simple_embeddable_database/" rel="nofollow">https://www.reddit.com/r/golang/comments/2f730k/can_anyone_recommend_a_simple_embeddable_database/</a></p> <p>also here is nice list of go stuff: <a href="https://github.com/avelino/awesome-go" rel="nofollow">https://github.com/avelino/awesome-go</a></p></pre>cryp7ix: <pre><p>also: <a href="https://github.com/cznic/ql">cznic/ql</a> and <a href="https://github.com/cznic/kv">cznic/kv</a></p></pre>captncraig: <pre><p>I&#39;m a fan of [ledisdb](ledisdb.com). It can run on a variety of file backends (I use goleveldb). Its distinguishing feature is that it implements a full redis-compatible api. So even though it is a local, embedded database I can use redis clients to access it. This makes it trivial to switch to a remote redis database if you outgrow the single node embedded mode.</p></pre>plebeianrage: <pre><p>Check <a href="https://github.com/pingcap/tidb" rel="nofollow">https://github.com/pingcap/tidb</a> They took cznic/ql and use it as a SQL layer over other KV stores (boltdb and leveldb amongst others). See <a href="https://github.com/pingcap/tidb/blob/master/docs/USAGE.md" rel="nofollow">https://github.com/pingcap/tidb/blob/master/docs/USAGE.md</a> for specifics.</p></pre>coleifer: <pre><p>SQLite!!</p> <p>But seriously, if go can talk to c libraries, you&#39;ve got your pick of a million options (berkeleydb, leveldb, rocksdb, unqlite, rlite, firebird, etc).</p></pre>saturation: <pre><p>Actually I am just trying to learn GO and it&#39;s ecosystem. I am doing webapp with it. And I am trying to prefer &#34;the go way&#34; to do things. But I would like to have installation of software simple at least for start. Eventually I would like to have database changeable. eg. use embeddable or some external like postgresql</p></pre>

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

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