0.0.4-alpha • Published 5 years ago

etna v0.0.4-alpha

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Build Status Coverage Open Collective backers and sponsors MIT License

EQL - Etna Query Language

Short Demonstration

SET &string name "Mitch"
# => OK.

SET &int age "24"
# => OK.

GET name
# => "Mitch"

GET age
# => 24

DELETE name
# => OK.

EXIST name
# => false

Types

Etna currently supports six basic types:

TypeAlias
&string&s
&int&i
&float&f
&bool&b
&null&n
&json&j

Commands

Etna currently supports four basic commands:

  • SET
  • GET
  • DELETE
  • EXIST

Query Language

Set a new value of type string and name as its key:

SET       &string   name  "John"
^         ^         ^      ^
command   type      key    value

Get the name value:

GET       name
^         ^
command   key

Delete the name value:

DELETE    name
^         ^
command   key

Check if the name key exists:

EXIST     name
^         ^
command   key