Author: huangjiahua
- Inspired by the database library in APUE chapter 20.
- Implemented by C++
- V 0.2.0
- New feature: iterator
- Refactor the codes to make them more "C++", because currently it use many codes directly from APUE , which were written in C.
- Make it thread-safe.
- Implement a server using socket to provide service and provide client API.
cd path/to/the/project
mkdir build && cd build
cmake .. # required cmake version > 3.10
make
- After you build the project, you will get a shared library file (librsdb.so in Linux, librsdb.dylib in Mac OS X) and a static library file (librsdb.a).
- Include the header in the include/rsdb and link the library you've just built, and you can start using RSDB.
- Alternatively, if you use cmake, you can just drag the project in to your cmake project and use
add_subdirectory
to add rsdb to your project. And you may do things like the following.
add_executable(my_binary ${MY_FILES})
target_link_libraries(my_binary rsdb ${OTHER_LIBS})
- This project has a related blog.