MentDB  Mentalese Database Engine
Strong AI, Weak AI, Interoperability and Software Development
    Home  >  MQL Functions
Parameter

You have an ultra-fast global parameter engine.

parameter add <key> <value> <locked>

Synonymous

    parameter create|insert|add

Description

    To add a new parameter

Parameters

    key:   The key - string - required
    value:   The value - integer - required
    locked:   The field is locked - boolean (1 or 0) - required
admin
parameter add test value 0
mentdb
Parameter added with successful.

parameter merge <key> <value> <locked>

Description

    To merge a parameter

Parameters

    key:   The key - string - required
    value:   The value - integer - required
    locked:   The field is locked - boolean (1 or 0) - required
admin
parameter merge test value 0
mentdb
Parameter merged with successful.

parameter exist <key>

Description

    To check if a parameter exist

Parameters

    key:   The key - string - required
admin
parameter exist test
mentdb
1

parameter get value <key>

Synonymous

    get_param

Description

    To get the parameter value

Parameters

    key:   The key - string - required
admin
parameter get value test
mentdb
value
admin
get_param test
mentdb
value

parameter get locked_dml <key>

Description

    To get the parameter locked dml status

Parameters

    key:   The key - string - required
admin
parameter get locked_dml test
mentdb
0

parameter lock_dml <key>

Description

    To lock a parameter

Parameters

    key:   The key - string - required
admin
parameter lock_dml test
mentdb
Parameter locked for dml with successful.

parameter remove <key>

Description

    To remove a parameter

Parameters

    key:   The key - string - required
admin
parameter remove test
mentdb
Sorry, the parameter test is locked.

parameter show

Description

    To show all parameters

admin
parameter show
mentdb
{<br> "C[basic-search]": {<br> "locked": "1",<br> "value": "10"<br> },<br> "C[symbol]": {<br> "locked": "1",<br> "value": "200"<br> },<br> "test": {<br> "locked": "1",<br> "value": "value"<br> },<br> "C[relation]": {<br> "locked": "1",<br> "value": "200"<br> },<br> "C[language]": {<br> "locked": "1",<br> "value": "25"<br> },<br> "C[user]": {<br> "locked": "1",<br> "value": "25"<br> },<br> "C[emotion]": {<br> "locked": "1",<br> "value": "25"<br> },<br> "C[process-tab]": {<br> "locked": "1",<br> "value": "25"<br> }<br>}

parameter unlock_dml <key>

Description

    To unlock for DML a parameter

Parameters

    key:   The key - string - required
admin
parameter unlock_dml test
mentdb
Parameter unlocked for dml with successful.

parameter update <key> <value>

Description

    To update a parameter

Parameters

    key:   The key - string - required
    value:   The value - integer - required
admin
parameter update test 67
mentdb
Parameter updated with successful.
admin
parameter get value test
mentdb
67

parameter lock_if_null <key> <value>

Description

    To lock a parameter if the parameter is null. Return 0 if already locked. Return 1 if the parameter has been locked.

Parameters

    key:   The key - string - required
    value:   The value - integer - required
admin
parameter lock_if_null test 67
mentdb
1

parameter generate update <key>

Description

    To generate an update parameter update request

Parameters

    key:   The key - string - required
admin
parameter generate update test
mentdb
parameter update "test" "67";
admin
parameter remove test
mentdb
Parameter removed with successful.

parameter generate merge <key>

Description

    To generate a merge request

Parameters

    key:   The key - string - required
admin
parameter generate merge test
mentdb
parameter merge "test" "67" false;
admin
parameter remove test
mentdb
Parameter removed with successful.
    Home  >  MQL Functions
MentDB © 2012 - 2019