Leveldb is a fast Key-value (string,string) repository, written by Google.
The basic operation is: put (key,value), get (key), Delete (key).
Users can create a temporary snapshot to get a consistent view of the data.
The data supports forward and back iterations.
Data is automatically compressed using the Snappy compression library.
External activities (file system operations, etc.) are implemented through virtual interfaces, so users can customize the operating system interface.
Limit:
LEVELDB is not a SQL database, so SQL queries are not supported;
A time period can only have one process (possibly multithreading) access to the database;
There is no built-in customer-server in the library, if the application needs to support CS, you need to package the user's own server into the library.
1. Download Leveldb file:
git clone https://github.com/google/leveldb.git
2. To the LEVELDB directory, execute make command:
After the execution is complete:
leveldb/under the out-shared and Out-static directory, which out-shared/under:
DB db_bench Helpers libleveldb.so libleveldb.so.1 libleveldb.so.1.19 port table util
3. Copy the file
sudo cp out-shared/libleveldb.so*/usr/local/lib & sudo cp-r include/*/usr/local/include
Installation Complete ...
Git clone https://code.google.com/p/leveldb/
"1" GitHub address:
Https://github.com/google/leveldb
"2" LEVELDB usage Instructions:
https://github.com/google/leveldb/blob/master/doc/index.md