Fun project, A database server written in Golang
Supports the following
- noSQL requests
- concurrent request handling
Supports 5 keywords:
INIT, ADD, UPDATE, DELETE, READ
Query format should be like this:
<> indicates to <write here your custom name>
INIT <tablename> tableADD <tablename> <primekey>,<rest of data>READ <primekey> <tablename>
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
every struct is stored in a map with a pointer
DB: tablename1: *table{ entry1: *entry{}
entry2: *entry{}
.
. }
tablename2: *table{} <br/>
.
.
.
