Google's leveldb is I am very interested in and read through the source of open source projects, so record the source of the reading processleveldb installation, reference: http://blog.csdn.net/koko2015c/article/details/68066761, in fact, make a bit, the dynamic link library and API copy to local,
Say is a database, actually say LEVELDB is a library more appropriate.
GitHub Address: https://github.com/google/leveldb
Instruction for use: https://github.com/google/leveldb/blob/master/doc/index.mdTest program
#include"Leveldb/db.h"#include<cassert>#include<iostream>using namespacestd;using namespaceleveldb;intMain () {leveldb::D b*DB; Leveldb::options Options; Options.create_if_missing=true; Leveldb::status Status= Leveldb::D b::open (Options,"TestDB", &db); ASSERT (Status.ok ()); Status= Db->put (Writeoptions (),"ABC","LevelDB here!"); ASSERT (Status.ok ()); stringRes; Status= Db->get (Readoptions (),"ABC", &res); ASSERT (Status.ok ()); cout<< Res <<Endl; DeleteDB; return 0;}
[Leveldb source Reading notes] 1. Installation and application Testing