Skip to content

Proposal: OTERCAL for querying data from OlegDB #160

@Xe

Description

@Xe

We need a hero. OlegDB is that hero.

I propose we have a new OlegDB Query Language (OTERCAL for obvious reasons which are an exercise best left to the reader) for better querying the key-value pairs we all know and love.

This specification's use of the keywords "must", "must not", "required", "shall", "shall not", "should", "should not", "recommended", "not recommended", "may", and "optional". These are to be interpreted as described in RFC2119.

Basic Syntax

<VERB> [<key> FROM <table> [AS <value>]] :D

All statements must be terminated with the "endless happiness" operator :D.

Verbs

Verb Meaning Needs Arguments? == C API call
JAR Sets <key> to <table> with the contents of <value> Yes and Value ol_jar
UNJAR Gets the contents of <key> from <table> Yes ol_unjar
SNIFF Gets the expiration of <key> from <table> Yes ol_expiration_time
SCOOP Removes <key> from <table> Yes ol_scoop
UPTIME Returns the uptime of the database No ol_uptime
SPOIL Sets <key> in <table> to have an expiry date of <value> Yes and Value ol_spoil
SELECT Matches by prefix in <table> with <key> as the prefix to match against Yes ol_prefix_match
SELECT * Gets all keys in <table>. Yes ol_key_dump
INVENTORY Sees if <key> exists in <table> Yes ol_exists
SQUISH Squishes the AOL file No ol_squish
CRAZY Performs the Malbolge Crazy operation on <key> in <table> against <value> Yes and Value

This could make OlegDB the truly cloud scale performant monster we all know and love.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions