Skip to content
/ rdb Public

Writing a SQLite from scratch in Rust.

Notifications You must be signed in to change notification settings

zhxiaogg/rdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rdb

Build Status

see https://cstack.github.io/db_tutorial.

components and TODOs

There is a detailed explaination about SQLite's architecture, this project aims to make a clone of that.

  • pager (in progress)
    • hashmap based implementation
    • use lru cache instead of hashmap
    • support mutliple tables in a single database file
    • parameterized page size
  • b+tree (for table, in progress)
    • insertion of cells
    • split of leaf node
    • update parent node after leaf node split
    • split of internal node
    • removal of cells
    • support arbitrary table schema
    • page structure needs to be revised
  • vm
    • a simple arithmetic vm
    • parser (in progress)
      • select
      • other statements
    • code gen (in progress)
    • sql execution plan
  • b-tree (for index)
  • transaction support

About

Writing a SQLite from scratch in Rust.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published