MentDB
Mentalese Database Engine
Back / All functions / Parameter

You have an ultra-fast global parameter engine.

parameter add parameter create|insert|addparameter mergeparameter existparameter get value get_paramparameter get locked_dmlparameter lock_dmlparameter removeparameter showparameter unlock_dmlparameter updateparameter lock_if_nullparameter generate updateparameter generate merge

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
{
"C[basic-search]": {
"locked": "1",
"value": "10"
},
"C[symbol]": {
"locked": "1",
"value": "200"
},
"test": {
"locked": "1",
"value": "value"
},
"C[relation]": {
"locked": "1",
"value": "200"
},
"C[language]": {
"locked": "1",
"value": "25"
},
"C[user]": {
"locked": "1",
"value": "25"
},
"C[emotion]": {
"locked": "1",
"value": "25"
},
"C[process-tab]": {
"locked": "1",
"value": "25"
}
}

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.




© 2012 - 2019 - MentDB.