快速开始
Build
Get source code and pull docker
git clone git@github.com:4paradigm/HybridSE.git
cd HybridSE
docker run -v `pwd`:/HybridSE -it ghcr.io/4paradigm/centos6_gcc7_hybridsql:latest
cd /Hybridse
# init enviroment before build
source tools/init_env.profile.sh建议开发者使用我们提供的镜像编译和安装库。若需要使用自己的开发环境,请确保相关依赖库正确安装。编译环境和依赖库可参考 HybridSQL-docker
Configure and build
cd /HybridSE
mkdir -p build && cd build
cmake ..
# just compile the core library
make -j4Install
编译配置项说明:
-DCMAKE_BUILD_TYPE=type: 可选的编译类型包括 Debug, Release, RelWithDebInfo (defualt isRelWithDebInfo), 编译类型-DCMAKE_INSTALL_PREFIX=directory: Specify for directory the full path name of where you want the HybridSE libraries to be installed (default/usr/local)-DTESTING_ENABLE=On: 开启测试的编译 (default isOFF)-DEXAMPLES_ENABLE=On: 开启examples模块的编译(default isOFF)-DBENCHMARK_ENABLE=On: 开启benchmark模块的编译 (default isOFF)-DJAVASDK_ENABLE=On: 开启JAVA SDK的编译 (default isON)-DPYSDK_ENABLE=On: 开启Python SDK的编译(default isON)
Run tests
Run simple engine demo
Run ToyDB
Build ToyDB
Start ToyDB
ToyDB是基于HybridSE开发的简易内存数据库. 它支持基本的数据库操作和SQL查询语句。详细使用参见 ToyDB使用手册
Last updated