leveldb icon indicating copy to clipboard operation
leveldb copied to clipboard

persistent db.DB implementation

Open GoogleCodeExporter opened this issue 10 years ago • 4 comments

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 [email protected] on 23 Feb 2012 at 2:32

GoogleCodeExporter avatar Jul 20 '15 04:07 GoogleCodeExporter

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 [email protected] on 2 Aug 2012 at 1:47

  • Changed state: Accepted

GoogleCodeExporter avatar Jul 20 '15 04:07 GoogleCodeExporter

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 [email protected] on 13 Oct 2012 at 10:46

GoogleCodeExporter avatar Jul 20 '15 04:07 GoogleCodeExporter

Is there still no persistence?

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

GoogleCodeExporter avatar Jul 20 '15 04:07 GoogleCodeExporter

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 [email protected] on 23 Dec 2013 at 10:32

GoogleCodeExporter avatar Jul 20 '15 04:07 GoogleCodeExporter