同步操作将从 SequoiaDB/sequoiasql-mysql 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
SequoiaSQL - MySQL Storage Engine is a distributed MySQL storage engine.
It currently supports SequoiaDB 3.x as the backend database, and it will be extended to multiple databases such like MongoDB/Redis and etc...
In order to take advantages of scalability and performance, SequoiaSQL - MySQL Storage Engine can be used to replace InnoDB and store user data/index/lob in the backend distributed database.
cd mysql-5.7.24/storage
git clone https://github.com/SequoiaDB/sequoiasql-mysql.git sequoiadb
cd mysql-5.7.24
cmake . -DWITH_BOOST=</path/to/boost_1_59_0/> -DCMAKE_INSTALL_PREFIX=/opt/mysql -DMYSQL_DATADIR=/opt/mysql/data -DWITH_SDB_DRIVER=</path/to/sequoiadb/driver> -DCMAKE_BUILD_TYPE=Release
make install -j 4
By default, the sequoiadb storage engine is built into MySQL. You can add -DSDB_BUILT_IN=OFF
to build it as a dynamic library.
Additional, we use two options to give plugin version and SequoiaDB C++ driver version:
-DSDB_PLUGIN_VERSION=<git commit short hash>
-DSDB_DRIVER_VERSION=<driver version>
For example: -DSDB_PLUGIN_VERSION=4811624 -DSDB_DRIVER_VERSION=3.0.1
.
According to MySQL coding guidelines, we use the Google C++ coding style.
We use clang-format
to format source code by 'Google' style with some exceptions. The '.clang-format' file contains all the options we used.
The .clang-format
file is dumped from the tool by following command:
clang-format -style=google -dump-config > .clang-format
And we changed following options:
SortIncludes: false
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
You can directly use clang-format command line or the plugin in VSCode if you use VSCode. Remember to use the .clang-format
file as style.
License under the GPL License, Version 2.0. See LICENSE for more information. Copyright (c) 2018, SequoiaDB and/or its affiliates. All rights reserved.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。