Rebuild a simple version of Sqlite from scratch using C
- The main objective of this project:
- Attain a comprehensive understanding of the architecture of SQLite
- Strengthen proficiency in the C Programming Language E
- Employ Test-Driven Development (TDD) using PyTest.
# Insert data into the database file (*.db):
$ insert {user_id} {user_name} {user_email}
# Retrieve all the available data within the database:
$ select
# Save and exit the database
$ .exit
# A simple visualization of B-Tree, which worked as the underlying data structure
$ .btree
# Compile everything => create the file: "db.out"
foo@bar:~$ make compile
# Run test (PyTest)
foo@bar:~$ make test
# Create and connect to a new database / connect to an existing database
foo@bar:~$ ./db.out {database_name}.db
- This project was based on this tutorial