Embeddable database for Go?

1,638 views
Skip to first unread message

Rohit Yadav

unread,
Nov 26, 2013, 8:36:12 AM11/26/13
to golan...@googlegroups.com
Hi,

At present what are the current actively maintained and working embeddable in-memory databases or db libs such as levedb, rocksdb etc.?

I found leveldb-go but it does not build, am not sure if it is complete and actually works [1].


Regards,
Rohit

f...@kimchi.io

unread,
Nov 26, 2013, 9:27:47 AM11/26/13
to golan...@googlegroups.com
This worked the last time I tried it:


There is also a LMDB wrapper: https://github.com/szferi/gomdb

Martin Angers

unread,
Nov 26, 2013, 9:28:48 AM11/26/13
to golan...@googlegroups.com
Take a look at https://github.com/cznic/ql (relational) and https://github.com/cznic/kv (key-value), both by Jan Mercl. I remember an announcement for "tiedot" too, not sure if it is embeddable.

Martin Angers

unread,
Nov 26, 2013, 9:30:33 AM11/26/13
to golan...@googlegroups.com

Rohit Yadav

unread,
Nov 26, 2013, 1:43:07 PM11/26/13
to Martin Angers, golan...@googlegroups.com
Thanks Martin, I'll explore them.

Regards,
Rohit

--
You received this message because you are subscribed to a topic in the Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/aX9k6y8qil4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

John Fries

unread,
Nov 26, 2013, 4:50:30 PM11/26/13
to Rohit Yadav, Martin Angers, golang-nuts
for leveldb you currently want https://github.com/jmhodges/levigo
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an

Nigel Tao

unread,
Nov 28, 2013, 6:35:05 PM11/28/13
to Rohit Yadav, golang-nuts
On Wed, Nov 27, 2013 at 12:36 AM, Rohit Yadav <rohity...@gmail.com> wrote:
> I found leveldb-go but it does not build,

Sorry, leveldb-go requires Go 1.2, which should be released soon.

f...@kimchi.io

unread,
Nov 29, 2013, 4:47:10 AM11/29/13
to golan...@googlegroups.com
On a second thought, LMDB isn't an in-memory database, sorry.

Dmitry Petrov

unread,
Nov 29, 2013, 4:48:48 AM11/29/13
to f...@kimchi.io, golan...@googlegroups.com
Hi

AFAIK tiedot is a good key-value embeddable database github.yandex-team.ru/market/islands-components

Rohit Yadav

unread,
Nov 29, 2013, 5:13:16 AM11/29/13
to Nigel Tao, golang-nuts
Thanks for the information Nigel. Can you share with us the status of the project development, where should we report bugs and if it's production ready.

Regards.

Nigel Tao

unread,
Nov 29, 2013, 11:17:50 PM11/29/13
to Rohit Yadav, golang-nuts
On Fri, Nov 29, 2013 at 9:13 PM, Rohit Yadav <rohity...@gmail.com> wrote:
> Thanks for the information Nigel. Can you share with us the status of the
> project development, where should we report bugs and if it's production
> ready.

leveldb-go is 'alpha' status. I believe it works in that you can put
key/value pairs in and will get them back later unharmed, but there
are still plenty of TODOs (including iterating over all keys in a
database), and there hasn't been any optimization work. I wouldn't use
it in production yet. It's linux/darwin amd64 only so far simply
because I haven't been able to verify the file locking code on other
systems. Bugs can be filed at
https://code.google.com/p/leveldb-go/issues/list
Reply all
Reply to author
Forward
0 new messages