https://github.com/lrf141/toybox
Simple Storage Engine for MySQL
https://github.com/lrf141/toybox
mysql plugin storage-engine
Last synced: 3 months ago
JSON representation
Simple Storage Engine for MySQL
- Host: GitHub
- URL: https://github.com/lrf141/toybox
- Owner: lrf141
- License: gpl-2.0
- Created: 2022-06-25T04:17:22.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-01-24T15:39:03.000Z (over 2 years ago)
- Last Synced: 2025-01-13T16:50:46.795Z (over 1 year ago)
- Topics: mysql, plugin, storage-engine
- Language: C++
- Homepage:
- Size: 184 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Toybox
Simple Storage Engine for MySQL
## How to build
### Clone mysql-server from github
```bash
$ git clone git@github.com:mysql/mysql-server.git
$ cd mysql-server
```
### Clone this repository
```bash
mysql-server/$ cd storage/
mysql-server/storage$ git clone git@github.com:lrf141/toybox.git
```
### Build with MySQL Server
```bash
mysql-server$ mkdir build && cd $_
mysql-server/build$ cmake ../ -DCMAKE_BUILD_TYPE=Debug -DWITH_BOOST=./boost -DDOWNLOAD_BOOST=1
```
### (Optional) Run mysql-test-run
```bash
mysql-server/storage/toybox$ ./mtr/setup-test.sh
mysql-server/storage/toybox$ cd ../../build/mysql-test
mysql-server/build/mysql-test$ ./mtr --suite toybox
```
### Run with rr-debugger
```bash
mysql-server/storage/toybox$ sudo sysctl -w kernel.perf_event_paranoid=1
mysql-server/storage/toybox$ ./mtr/setup-test.sh
mysql-server/storage/toybox$ cd ../../build/mysql-test
mysql-server/build/mysql-test$ ./mtr --suite toybox --rr
```
### (Optional) Run unit test
```
mysql-server/build$ ./runtime_output_directory/toybox_tests
```
### (Deprecated) Install/Uninstall Plugin
```sql
mysql> INSTALL PLUGIN toybox SONAME 'ha_toybox.so';
mysql> UNINSTALL PLUGIN toybox;
```