Skip to content

ramasai1/mmapdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Small DB using mmap()

This repo contains a primitive DB supporting create, insert and select queries. An example of the storage structure is given in the data/ folder. The .metadata file contains the required metadata for the table (names and types of each of the attributes) and the .db file contains the tuples.

The query used to build the example is: create table sample (id int, name string, registered bool).
To insert tuples into the DB: insert into sample (1, harry, true), (2, samuel, true), (3, william, false).
To select, either specify the attributes or use * (select * from sample).

About

small db using mmap()

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published