tuxxy / minima

MinimaDB: An embeddable database written in Nim.

Home Page:https://decanus.github.io/minima/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

minima

Test

MinimaDB: An embeddable database written in Nim.

import stew/results, minima

let result = open("/tmp/minima")
if not result.isOk:
    echo result.error()
    return

db = result.value

let key = @[byte 1, 2, 3, 4]

# Insert
db.set(key, @[byte 4, 3, 2, 1])

# Get
let val = db.get(key)

Caveats

This software is still pre-alpha, and should not be considered reliable. Here are some caveats that should be taken into consideration when using Minima:

  • The maximum length of both keys and values are 2^32-1 this is because we internally use uint32s to represent the length of both fields.

About

MinimaDB: An embeddable database written in Nim.

https://decanus.github.io/minima/

License:MIT License


Languages

Language:Nim 100.0%