代码拉取完成,页面将自动刷新
This is the repo for FDU 2022 - Introduction to Database - Project 2 - MyJQL
MyJQL is a simplified redis-like key-value database, which supports three kinds of operations: get key
, set key value
, and del key
. B-Tree index is automatically created for key
.
include
and src
: Core implementation of MyJQL.driver
: Header and source for MyJQL driver. After compilation, you can include myjqlclient.h and link myjqlclient.lib (in Windows) or libmyjqlclient.a (in Linux). In this way, your own program will be able to store data to and retrieve data from MyJQL.main
: myjqlserver.c
is the server. myjqlshell.cpp
is the client, which also serves as an example utilizing the driver.test
: Tests for core implementation. test_myjql.cpp
is used to examine the full functionality.MyJQL supports Windows and Linux (Ubuntu).
Shell/CMD/PowerShell (in the root directory of this repo):
mkdir build
cd build
cmake ..
cmake --build .
MSVC:
cmake --build . --config Release
gcc:
cmake .. -DCMAKE_BUILD_TYPE=Release
Change directory into build/test
(if you are currently in build
):
cd test
List tests:
ctest -N
Run tests:
MSVC:
ctest -C Debug
ctest -C Release
gcc:
ctest
myjqlserver
.myjqlshell
.set key value
: set key
to value
.get key
: get value based on key
.del key
: delete value based on key
.exit
: exit the client shell.ctrl + c
in Windows and Linux.此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。