MentDB, The digital brain.  About me Home
Back / All functions / Sequence

You can manage sequences (base 26) as a standard database.

sequence showsequence get currentsequence add sequence create|insert|addsequence existsequence incrementsequence updatesequence generate updatesequence remove

sequence show

Description

    To show all sequences

admin
sequence show
mentdb
{
"relation-O": "-1",
"thought": "89",
"relation-I": "5",
"relation-L": "54",
"relation-U": "n",
"relation-G": "w",
"circle": "0",
"relation-R": "3",
"relation-A": "7",
"relation-D": "1",
"relation-S": "1"
}

sequence get current <key>

Description

    To get the current sequence value

Parameters

    key:   The key - string - required
admin
sequence get current "thought"
mentdb
6z

sequence add <key> <value>

Synonymous

    sequence create|insert|add

Description

    To add a new sequence

Parameters

    key:   The key - string - required
    value:   The value - integer - required
admin
sequence add "test" 0
mentdb
Sequence added with successful.

sequence exist <key>

Description

    To check if a sequence exist

Parameters

    key:   The key - string - required
admin
sequence exist "test"
mentdb
1

sequence increment <key>

Description

    To increment a sequence value+1

Parameters

    key:   The key - string - required
admin
sequence increment "test"
mentdb
1
admin
sequence increment "test"
mentdb
2

sequence update <key> <value>

Description

    To update a sequence

Parameters

    key:   The key - string - required
    value:   The value - integer - required
admin
sequence update "test" 67
mentdb
Sequence updated with successful.
admin
sequence get current "test"
mentdb
67

sequence generate update <key>

Description

    To generate an update sequence update request

Parameters

    key:   The key - string - required
admin
sequence generate update "test"
mentdb
sequence update "test" "67";

sequence remove <key>

Description

    To remove a sequence

Parameters

    key:   The key - string - required
admin
sequence remove "test"
mentdb
Sequence removed with successful.




© 2012-2017 - Jimmitry Payet.