Skip to content

xindubawukong/Database-Final-Project

Repository files navigation

This project is the final project of Database class in Tsinghua University.

Team member: 丁相允,尹一帆.

The database is implemented in C++. Codes are build with bazel. Please follow the Google C++ Style Guide.

Usage

Use Bazel

Directory bazel_example is an example to use Google bazel. Run the following code in the same path with WORKSPACE file:

bazel clean  # clean cached build files

bazel build bazel_example/main:all bazel_example/lib:all  # build in debug mode

bazel build -c opt bazel_example/main:all bazel_example/lib:all  # build in optimization mode

bazel run bazel_example/main:hello-world  # run in debug mode

bazel run -c opt bazel_example/main:hello-world  # run in optimization mode

bazel test bazel_example/main:hello-greet_test  # run googletest

bazel test bazel_example/main:hello-greet_test --test_output=streamed  # run googletest with output details

Run All Unit Tests

python3 test_all.py

Run database

cd parser
cmake .
make
cd ..
bazel run :sql

References

https://web.stanford.edu/class/cs346/2015/

About

A simple database.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published