ilovejs / leveldb-go

Automatically exported from code.google.com/p/leveldb-go
0 stars 0 forks source link

persistent db.DB implementation #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I've been happily using the memdb implementation of db.DB and was wondering if 
there's a persistent implementation of db.DB in the works?

Original issue reported on code.google.com by eik...@eikeon.com on 23 Feb 2012 at 2:32

GoogleCodeExporter commented 9 years ago
Yes, the top-level leveldb package is supposed to provide a persistent db.DB 
implementation, but that package isn't finished yet.

Sorry for the late response, but I had a typo in my mail setup and wasn't 
getting leveldb-go bug mail.

Original comment by nigel...@golang.org on 2 Aug 2012 at 1:47

GoogleCodeExporter commented 9 years ago
I'd like to work on this - specifically, I'm starting to add support for 
CreateIfMissing first. I might fill documentation gaps too.

Original comment by yves.jun...@gmail.com on 13 Oct 2012 at 10:46

GoogleCodeExporter commented 9 years ago
Is there still no persistence?

Original comment by treeder on 21 Dec 2013 at 12:15

GoogleCodeExporter commented 9 years ago
There is persistence now. You should be able to call leveldb.Open to open (or 
create) a persistent database, and Get from and Set to it. Find doesn't work 
yet, there's some optimization that needs doing, and the unit tests pass but 
there may still be bugs in it.

Original comment by nigel...@golang.org on 23 Dec 2013 at 10:32