npm.io
0.0.4-alpha • Published 7 years agoCLI

etna

Licence
MIT
Version
0.0.4-alpha
Deps
2
Size
11 kB
Vulns
3
Weekly
0
Stars
7

Build Status Coverage Open Collective backers and sponsors MIT License

WORK IN PROGRESS

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:

Type Alias
&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

Keywords