Skip to content

musgravejw/database-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Database

Database implemented from scratch.

Heavily drawn from https://cstack.github.com/db_tutorial with my own changes.

.
├── LICENSE
├── Makefile
├── README.md
├── dist
│   └── db
└── src
    ├── b-tree.h
    ├── datatypes.h
    ├── mm.h
    ├── parser.h
    ├── repl.c
    └── vm.h

2 directories, 10 files

Install

$ make

Usage

$ ./dist/db 


 ############################## 
 ##  ________  ________      ##
 ## |\   ___ \|\   __  \     ##
 ## \ \  \_|\ \ \  \|\ /_    ##
 ##  \ \  \  \ \ \   __  \   ##
 ##   \ \  \__\ \ \  \|\  \  ##
 ##    \ \_______\ \_______\ ##
 ##     \|_______|\|_______| ##
 ##############################

Please select a database
?> [database]

?> create table [table name]

?> insert [id] [name] [value]

?> select

License

  • This project is licensed under a BSD 3-Clause License

Copyright (c) 2019, John Musgrave All rights reserved.