Skip to content

rish-16/NachoDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

NachoDB πŸ§€

A simple sqlite-like database written in C


Why, though?

To practice C after a 8 year hiatus, I'm building small projects in the language. It's a rough and dirty data store but serves to improve my grasp on C.

Here's the NachoDB prompt:

nacho > 

NachoDB has a single table with a fixed schema:

id username email
int varchar(255) varchar(255)

The records look like this:

id username email
0 John jdoe@gmail.com
1 Dave dsmith@gmail.com
2 Jerry jwang@gmail.com

Here are some useful commands:

  1. insert
  2. select
  3. .exit

To see the bytes being stored on the disk, go to the src directory and type the following in terminal:

vim rishtest.nacho
:%!xxd

This allows us to see the individual bytes and the corresponding data.


License

MIT

About

πŸ§€ A simple sqlite-like database written in C

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages