gibkv

module
v0.0.0-...-1b73bc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2019 License: MIT

README

gibkv

Gibkv is a simple key value database storage. It stores data sequentially and relies on an base index file that points to the particular file/data entriy to retrieve the information.

Index file

The index file consists of table metadata and indecies pointing to the offset inside the file of that particular table.

+---------+------------+----------------+
|Magic(4) | Version(2) | Table Count(4) |
+---------+-----------------------------+
|TableName(128)        | TableId(2)     |
+----------------------+----------------+
|              ...                      |
+---------+------------+----------------+
|Count(2) | Hash(4)    | Index(4)       |
+---------+------------+----------------+

Data file

+---------+------------+----------------+
|Magic(4) | Version(2) | Id(2)          |
+---------+-----------------------------+
|Length(4)             | Data(len)      |
+----------------------+----------------+
|              ...                      |
+---------+------------+----------------+
|Length(4)             | Data(len)      |
+---------+------------+----------------+

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL