Skip to content

lrayan7/db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

db - (in progress...)

Fun project, A database server written in Golang

Supports the following

  • noSQL requests
  • concurrent request handling

query request format

Supports 5 keywords:
INIT, ADD, UPDATE, DELETE, READ

Query format should be like this:
<> indicates to <write here your custom name>

  • INIT <tablename> table
  • ADD <tablename> <primekey>,<rest of data>
  • READ <primekey> <tablename>

How it works

flask app listens on query input, that sends JSON formatted {Action:_,Table:_,Value:_} request to DB server
for example, if client writes INIT users table - {Action:INIT,Table:users,Value:_} will be sent to the DB
upon intercepting the request at DB side, request is parsed and a worker spawns if needed to handle it


Data Structure

every struct is stored in a map with a pointer

DB:   tablename1: *table{      entry1: *entry{} 
                               entry2: *entry{} 
                              .
                              .               } 
                        
      tablename2: *table{} <br/>
          .
          .
          .
          

overview

alt text

About

database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published