Skip to content

72sevenzy2/in-memory-database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

key-value style in-memory database.

a quick and easy to use key-value db built in go.

  • persistant input/error handling for edge cases.
  • interactive cli mode, which stores variable-like data (for now only supports values of type string and int) to then be retrieved later with methods like "GET", "SET", "DEL", and "EXIT" to exit the program.
  • serializes values to bytes before appending to the database struct for optimised performance.

interactive cli tutorial:

run the following to begin:

go run .

and follow up by declaring a variable:

SET [KeyName] [Value]

(key names only support either integers or strings as of now).

after setting a variable, you can then retrieve it like so:

GET [KeyName]

and it returns the value of the key given.

to delete a variable/key:

DEL [KeyName]

finally, to exit the program, run:

EXIT

About

key-value style database I built with go, in which stores key-values with serialization involved to ensure optimal performance.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages