https://github.com/project-tsurugi/shakujo
SQL compiler for tsurugidb (legacy).
https://github.com/project-tsurugi/shakujo
compiler legacy sql tsurugidb
Last synced: 11 months ago
JSON representation
SQL compiler for tsurugidb (legacy).
- Host: GitHub
- URL: https://github.com/project-tsurugi/shakujo
- Owner: project-tsurugi
- License: apache-2.0
- Created: 2019-01-18T09:35:55.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-06-17T05:25:36.000Z (about 2 years ago)
- Last Synced: 2024-06-17T06:35:38.170Z (about 2 years ago)
- Topics: compiler, legacy, sql, tsurugidb
- Language: C++
- Homepage:
- Size: 4.19 MB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Shakujo - A portable relational database languages compiler
## Requirements
* CMake `>= 3.16`
* C++ Compiler `>= C++17`
* Java Runtime `>= 11`
* and see *Dockerfile* section
```sh
# retrieve third party modules
git submodule update --init --recursive
```
#### Dockerfile
```dockerfile
FROM ubuntu:22.04
RUN apt update -y && apt install -y git build-essential cmake ninja-build openjdk-11-jdk libgoogle-glog-dev pkg-config uuid-dev doxygen
```
## How to build
```sh
mkdir build
cd build
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release ..
ninja
```
available options:
* `-DBUILD_SHARED_LIBS=OFF` - create static libraries instead of shared libraries
* `-DBUILD_TESTS=OFF` - don't build test programs
* `-DBUILD_DOCUMENTS=OFF` - don't build documents by doxygen
* `-DBUILD_EXAMPLES=OFF` - don't build nor test example programs
* `-DINSTALL_EXAMPLES=ON` - also install example programs
* `-DFORCE_INSTALL_RPATH=ON` - force set RPATH for non-default library paths
* for debugging only
* `-DENABLE_SANITIZER=OFF` - disable sanitizers (requires `-DCMAKE_BUILD_TYPE=Debug`)
* `-DENABLE_UB_SANITIZER=ON` - enable undefined behavior sanitizer (requires `-DENABLE_SANITIZER=ON`)
* `-DENABLE_COVERAGE=ON` - enable code coverage analysis (requires `-DCMAKE_BUILD_TYPE=Debug`)
### install
```sh
ninja install
```
### run tests
```sh
ctest
```
### generate documents
```sh
ninja doxygen
```
## License
[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)