A simple key value database for storing simple structures.

Related tags

Database Perdia-DB
Overview

Perdia-DB

A simple key value database for storing simple structures. No nesting of structures is supported, but may be implemented in the future.

Tokens

Name Description
QUERY Used to get a Object by it's name.
CREATE Cerate an object from an template.
GET Get a value from an object with a key.
PUT Overwrite a value from an object using a key.
VALUE Define the value for the PUT command.
TYPE Defines field type of template or defines new template.
NAME Declare field name.
STARTING Declare value of field if nothing is set.
END Mark end of template definition.

Responses

Name Descirption
OK No get queries were done and everything went fine.
PUT_ERR There was an error with a PUT command.

Example

Declare Templates

Declaration of templates should only occur in their own request. Although everything works fine when it is not.

TYPE "DAY";
NAME "First" TYPE STRING STARTING "Nothing";
NAME "Second" TYPE STRING STARTING "Nothing";
NAME "Third" TYPE STRING STARTING "Nothing";
NAME "Day" TYPE INTEGER STARTING 1;
NAME "Seconds" TYPE FLOAT;
END;

👇

{
  "name": "DAY",
  "instance": null,
  "data": {
    "First": "Nothing",
    "Second": "Nothing",
    "Third": "Nothing",
    "Day": 1,
    "Seconds": 0.0
  }
}

Create Objects

Make a instance of a defined template with a key.

CREATE "Monday" TYPE "DAY";

Query Objects

Query object by name.

QUERY "Monday" PUT "First" VALUE "Science";
QUERY "Monday" PUT "Second" VALUE "CS";
QUERY "Monday" GET "First";
QUERY "Monday" GET "First" "Second";

Query objects by type

QUERY TYPE GET "DAY" GET "First";
QUERY TYPE GET "DAY" GET "First" "Seconds";

Query all types

QUERY TYPE;

Delete Objects

This will delete just the instance.

DELETE "Monday"

This will remove all instances with the type and the type itself.

REMOVE "DAY"
You might also like...
A simple embedded key-value store written in rust as a learning project

A simple embedded key-value store written in rust as a learning project

CLI tool to work with Sled key-value databases.

sledtool CLI tool to work with Sled key-value databases. $ sledtool --help Usage: sledtool dbpath command [args] CLI tool to work with Sled da

LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values.

LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values. Authors: Sanjay Ghem

ForestDB - A Fast Key-Value Storage Engine Based on Hierarchical B+-Tree Trie

ForestDB is a key-value storage engine developed by Couchbase Caching and Storage Team, and its main index structure is built from Hierarchic

A Key-Value data storage system. - dorea db

Dorea DB 🛰 Dorea is a key-value data storage system. It is based on the Bitcask storage model Documentation | Crates.io | API Doucment įŽ€äŊ“中文 | English

RedisLess is a fast, lightweight, embedded and scalable in-memory Key/Value store library compatible with the Redis API.

RedisLess is a fast, lightweight, embedded and scalable in-memory Key/Value store library compatible with the Redis API.

Log structured append-only key-value store from Rust In Action with some enhancements.

riakv Log structured, append only, key value store implementation from Rust In Action with some enhancements. Features Persistent key value store with

A LSM-based Key-Value Store in Rust

CobbleDB A LSM-based Key-Value Store in Rust Motivation There is no open-source LSM-based key-value store in Rust natively. Some crates are either a w

A sessioned Merkle key/value store

storage A sessioned Merkle key/value store The crate was designed to be the blockchain state database. It provides persistent storage layer for key-va

Comments
  • Backend rewrite

    Backend rewrite

    Rewrote the entire backend execution structure. Moved form single messy match HELL to tidy AST with rule checking and separated execution. In the process the execution time moved to a a few micro seconds.

    opened by cauvmou 0
Owner
Perdia
A SQL-Like DB written in rust with a java interface. This organization was created as part of a school project.
Perdia
A fast and simple in-memory database with a key-value data model written in Rust

Segment Segment is a simple & fast in-memory database with a key-value data model written in Rust. Features Dynamic keyspaces Keyspace level control o

Segment 61 Jan 5, 2023
Immutable Ordered Key-Value Database Engine

PumpkinDB Build status (Linux) Build status (Windows) Project status Usable, between alpha and beta Production-readiness Depends on your risk toleranc

null 1.3k Jan 2, 2023
Distributed transactional key-value database, originally created to complement TiDB

Website | Documentation | Community Chat TiKV is an open-source, distributed, and transactional key-value database. Unlike other traditional NoSQL sys

TiKV Project 12.4k Jan 3, 2023
AgateDB is an embeddable, persistent and fast key-value (KV) database written in pure Rust

AgateDB is an embeddable, persistent and fast key-value (KV) database written in pure Rust. It is designed as an experimental engine for the TiKV project, and will bring aggressive optimizations for TiKV specifically.

TiKV Project 535 Jan 9, 2023
Pure rust embeddable key-value store database.

MHdb is a pure Rust database implementation, based on dbm. See crate documentation. Changelog v1.0.3 Update Cargo.toml v1.0.2 Update Cargo.toml v1.0.1

Magnus Hirth 7 Dec 10, 2022
RefineDB - A strongly-typed document database that runs on any transactional key-value store.

RefineDB - A strongly-typed document database that runs on any transactional key-value store.

Heyang Zhou 375 Jan 4, 2023
A "blazingly" fast key-value pair database without bloat written in rust

A fast key-value pair in memory database. With a very simple and fast API. At Xiler it gets used to store and manage client sessions throughout the pl

Arthur 16 Dec 16, 2022
An embedded, in-memory, immutable, copy-on-write, key-value database engine

An embedded, in-memory, immutable, copy-on-write, key-value database engine. Features In-memory database Multi-version concurrency control Rich transa

SurrealDB 7 May 5, 2024
A Distributed SQL Database - Building the Database in the Public to Learn Database Internals

Table of Contents Overview Usage TODO MVCC in entangleDB SQL Query Execution in entangleDB entangleDB Raft Consensus Engine What I am trying to build

Sarthak Dalabehera 38 Jan 2, 2024
PickleDB-rs is a lightweight and simple key-value store. It is a Rust version for Python's PickleDB

PickleDB PickleDB is a lightweight and simple key-value store written in Rust, heavily inspired by Python's PickleDB PickleDB is fun and easy to use u

null 155 Jan 5, 2023