bogodb

command module
v0.0.0-...-27f2751 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2019 License: MIT Imports: 8 Imported by: 0

README

BogoDb

BogoDb is a toy database management system written in Go. Inspired by CMU Database Group's Lecture (of course not including homework!) This db still works completely poor. I realized it is so difficult to develop efficient database...

Specification

  • SQL
    • create table
    • insert statment
    • select statement(from, where)
    • begin, commit, rollback
  • Index(with b-tree)
  • Buffer on memory
  • Concurrency(only transaction)
  • not mmap implementation

Requirement

  • go 1.13
  • protoc

How to run

# start bogodb server
> go run .

# create table
> curl "http://localhost:32198/execute?query=create%20table%20users%20{%20id%20int%20primary%20key%20%20}"

# insert 
> curl "http://localhost:32198/execute?query=insert%20into%20users%20values%20(1)"

# select
> curl "http://localhost:32198/execute?query=select%20id%20from%20users"

TODO

  • refactoring query, especially analyse, eval...
  • btree's implementation
  • add update, delete statement

Author

ad-sho-loko

LICENSE

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL