Simple filesystem based key/value db. Provided as golang lib.
Find a file
Arnas Udovic c03c377165
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing
abcex v3
2024-09-20 11:25:02 +03:00
testdata Init, Get, GetNode, Inc, Dec 2024-07-18 12:40:53 +03:00
.drone.yml drone 2024-07-18 22:44:12 +03:00
.gitignore Init, Get, GetNode, Inc, Dec 2024-07-18 12:40:53 +03:00
CHANGELOG changelog reverse order 2024-08-08 18:27:05 +03:00
go.mod abcex v3 2024-09-20 11:25:02 +03:00
go.sum abcex v3 2024-09-20 11:25:02 +03:00
LICENSE Initial commit 2024-07-17 13:48:34 +00:00
README.md added node commands 2024-08-08 15:23:03 +03:00
zordfsdb.go abcex v3 2024-09-20 11:25:02 +03:00
zordfsdb_test.go added node commands 2024-08-08 15:23:03 +03:00

zordfsdb

Build Status

Simple filesystem based key/value db. Provided as golang lib. Main idea is that user knows structure and gets value from known path. For operations that should search or do more should be used Nodes (golang structure).

Configuration

Init root directory.

Supported command

Commands can be split into value layer when you know the structure and node layer for deaper operations.

value layer commands

  • Get - to get value from path
  • Save - update or create value. Depends on path. If path directs into not existing parent object - will return false
  • Inc - increase abcex value
  • Dec - decrease abcex value
  • Now - save current datetime

node layer commands

  • GetNode - to get node. It can be object, list or value object. Returns false if not exist
  • CreatNode - create list (director) to add many same objects (structure should be controlled by user) or single object. Parent Node should exist
  • AddObject - add object to given list. Should assign abcex id

helper commands

  • Del - delete value, object or list by given path
  • Keys - return possible keys for object or ids for list

dictionary

  • object - directory of key/value
  • list - directory of objects named by abcex as key
  • path - path to key or object or list

DEV

Run tests: $ go test