Skip to content

Arist937/relational-database-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Description

In this project, I am writing my own idea for a relational database from scratch. I am trying to do so without much outside influence, to see how I would implement some DBMS ideas. The database will use a basic version of SQL with some changes to make it easier for me to parse.

Usage

  1. Compile all .cc files in the src folder with g++ -std=c++20 src/*.cc -o db
  2. Run the executable with ./db
  3. Create a new table with create TABLE_NAME VAR_NAME:VAR_TYPE...
  4. Insert to the table with insert TABLE_NAME VAR_VAL:VAR_TYPE...
  5. View a table its rows with with select TABLE_NAME
  6. Load a database with load TABLE_NAME

With each table creation and row insertion, the database should automatically serialize itself and save the data to disk. Tables are by default stored in databases/.

To-Do

  • Implement more comprehensive Select-From-Where queries
  • Implement indexing with B+ Trees

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages