This is an experimental project tried to explore the fetures of relational database, such as sqlite.
- Pure C implementation
- Data retrieval struct based on B+ Tree
- Support SELECT, INSERT syntax
-
complie
Please use
gcc
to compile the source code since we need some fetures ofgcc
such asvoid pointer algorithm
:gcc -o db db.c
-
run
./db name_of_db_file.db
-
insert Execute
INSERT 1 user [email protected]
-
select Execute
select
For more details, please check out spec/main_spec.rb
, which includes most of the test cases. If you want to execute the test code, please install ruby lang
.