Best embedded database for go?

4,690 views
Skip to first unread message

Jeremy Wall

unread,
Mar 5, 2012, 8:59:15 PM3/5/12
to golang-nuts
Currently all I've found that looks reasonable is:
http://code.google.com/p/gosqlite/

Are there any decent pure go options? It doesn't have to be sql
key/value or dbm style options are also acceptable for my purposes.

Jeremy

David Forsythe

unread,
Mar 5, 2012, 9:04:16 PM3/5/12
to Jeremy Wall, golang-nuts
I'm not sure how far along this is, but leveldb-go might work for you.

http://code.google.com/p/leveldb-go/

--
David

Jeremy Wall

unread,
Mar 5, 2012, 9:11:38 PM3/5/12
to David Forsythe, golang-nuts
Ahhh nice I missed that one somehow, thanks.

Nigel Tao

unread,
Mar 5, 2012, 10:12:38 PM3/5/12
to David Forsythe, Jeremy Wall, golang-nuts
On 6 March 2012 13:04, David Forsythe <dfor...@gmail.com> wrote:
> I'm not sure how far along this is, but leveldb-go might work for you.
>
> http://code.google.com/p/leveldb-go/

That's my project, but it's not finished yet.

In-memory tables work, and on-disk tables work, but writing an on-disk
table requires writing the keys in sorted order. What remains to be
written is the part that combines the two, plus the journaling, that
gives you an efficient disk-backed key/value store without requiring
key-sorted writes.

I aim to finish it once Go 1 is done.

Francisco Souza

unread,
Mar 5, 2012, 10:20:05 PM3/5/12
to Jeremy Wall, golang-nuts

I wrote a Kyoto Cabinet (dbm) wrapper: https://github.com/fsouza/gokabinet/

It's simple, but it works.

--
~f

wenye

unread,
Mar 7, 2012, 2:33:00 AM3/7/12
to golan...@googlegroups.com, David Forsythe, Jeremy Wall
Is your snappy-go project finished?

Krzysztof Kowalik

unread,
Mar 7, 2012, 6:13:58 AM3/7/12
to Jeremy Wall, golang-nuts
Dunno if it will fit you, but i wrote that experimental storage for
webrocket: http://github.com/nu7hatch/persival

-nu7

Nigel Tao

unread,
Mar 7, 2012, 7:57:52 PM3/7/12
to wenye, golan...@googlegroups.com, David Forsythe, Jeremy Wall
On 7 March 2012 18:33, wenye <wen...@gmail.com> wrote:
> Is your snappy-go project finished?

Yes, snappy-go is effectively complete. There's a relatively new
streaming format [0] that the Go code doesn't implement yet, but the
basic compress / decompress code is complete.

[0] http://code.google.com/p/snappy/source/browse/trunk/framing_format.txt

Ye Wen

unread,
Mar 7, 2012, 7:59:46 PM3/7/12
to Nigel Tao, golan...@googlegroups.com
Nice. Thanks!

Howard Guo

unread,
Nov 28, 2013, 1:56:10 AM11/28/13
to golan...@googlegroups.com
I'm late to this thread, but if you are still interested, check out a NoSQL database engine, entirely written in Go.

It can be used as embedded database:

Reply all
Reply to author
Forward
0 new messages