Skip to content
YashbhuPublic

About

A from-scratch relational database engine in Go with SQL, persistent KV storage, SSTables, LSM-tree storage, secondary indexes, transactions, and concurrency.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Metis

Metis is a Rust key-value database built in stages. It currently supports one process, one log file, and an in-memory key-to-offset index.

Run a session with a fresh file path:

cargo run -- demo.log
put fruit mango
get fruit
put fruit pear
delete fruit
get fruit
quit

The CLI takes whitespace-separated tokens. The Rust library accepts arbitrary byte keys and values, including empty ones.

Each record contains a one-byte tag, little-endian 32-bit key and value lengths, then the key and value bytes. Tag 1 represents a put and tag 2 represents a deletion with zero value bytes. Reads use the in-memory index to seek to the current record.

Each run requires a new file. Log replay arrives on Day 4, and syncing writes before acknowledgement arrives on Day 6.

About

A from-scratch relational database engine in Go with SQL, persistent KV storage, SSTables, LSM-tree storage, secondary indexes, transactions, and concurrency.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages