Skip to content
This repository was archived by the owner on Jul 17, 2026. It is now read-only.
/ sdb Public archive

TheDevtop/sdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SDB: Simple database for UNIX systems

SDB is a simple and dynamic key/value store based on Badger. Simple because it uses the UNIX conventions (command line flags, read from stdin, write to stdout). Dynamic because it can iterate on key prefixes, where a prefix is user defined.

  • io.github.thedevtop (. prefixing)
  • table:column:0042 (: prefixing)
  • org/project/members (/ prefixing)
usage: sdb [command] [options...]

Command: ls

List all keys or subset of keys specified by prefix.

  • -k Specify key

Command: cp

Copy key/value or set of key/values specified by prefix.

  • -k Specify key
  • -n Specify new key
  • -r Enable recursion

Command: cat

Write the value of a key to stdout.

  • -k Specify key
  • -r Enable recursion

Command: get

Write the value of a key to a file.

  • -k Specify key
  • -r Enable recursion
  • -f Specify file

Command: mv

Move key/value or set of key/values specified by prefix.

  • -k Specify key
  • -n Specify new key
  • -r Enable recursion

Command: pipe

Read the value of a key from stdin.

  • -k Specify key

Command: put

Read the value of a key from a file.

  • -k Specify key
  • -f Specify file

Command: set

Read the value of a key from arguments.

  • -k Specify key
  • -v Specify value

Command: rm

Remove key/value or set of key/values specified by prefix.

  • -k Specify key
  • -r Enable recursion

About

Simple database for UNIX systems

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors