MentDB, The digital brain.  About me Home

Mentalese Query Language

MQL v_alpha-0.3.2

LanguageSymbolData type (stimulation)WordThoughtRelationCircleLinkStimulationConcentrationBrainExternal REST APIScriptStatementOperatorFXUserGroupJobSequenceJSONTransactionFile SystemMetricEnvironment variableSessionParameterConfigurationLogGraphServer

Language
language create language create|insert|addlanguage showlanguage stimulatelanguage first
Symbol
symbol create symbol create|insert|addsymbol deletesymbol firstsymbol getsymbol lastsymbol showsymbol perceptionsymbol show wordssymbol show languagessymbol stimulate
Data type (stimulation)
data type searchdata type is
Word
word create word create|insert|addword create word create|insert|addword import from textword existword firstword lastword getword lang probabilityword searchword levenshteinword show languagesword showword showword perceptionword perception symbolword perception thoughtword stimulateword deleteword delete
Thought
thought create thought create|insert|addthought firstthought getthought lastthought mergethought showthought searchthought showthought show wordsthought show wordsthought stimulatethought deletethought delete by langthought delete by wordthought delete by word lang
Relation
relation create relation create|insert|addrelation create sub relation create|insert|add subrelation show sentencerelation translaterelation translaterelation newrelation has subrelation show inforelation firstrelation getrelation lastrelation findrelation networkrelation list idsrelation search basicrelation search deeprelation set conditionrelation set generatorrelation set actionrelation set else actionrelation show conditionsrelation show actionrelation exist conditionrelation generate conditionrelation generate actionrelation showrelation show perceptionsrelation show thoughtsrelation show thought nodesrelation show wordsrelation pos no somethingrelation thought stimulaterelation stimulaterelation check conditionrelation conditionrelation execute actionrelation delete
Circle
circle mergecircle existcircle showcircle idscircle delete
Link
link create thought link create|insert|add thoughtlink create relation link create|insert|add relationlink get valuelink get thoughtlink get relationlink exist thoughtlink exist relationlink delete thoughtlink delete relation
Stimulation
stimulation initializestimulation initializestimulation clickstimulation clickstimulation splitstimulation msg getstimulation search basicstimulation search strategicstimulation search logicalstimulation commitstimulation msg showstimulation msg sizestimulation msg savestimulation msg removestimulation redirect
Concentration
concentration showconcentration set depthconcentration depth
Brain
brain stopbrain startbrain statusbrain send message
External REST API
rest httprest https
Script
script add script create|insert|addscript updatescript getscript generate updatescript existscript showscript export_allscript import_allexecuteincludescript is grantedscript generate urlscript generate executescript generate includescript show groupsscript show usersscript delete
Statement
evalifif forcecaseforwhilerepeatexceptiontry
Operator
+-*/andorxornotis nullis not nullis null or emptyis emptyis not emptyequalnot equal==!=>>=<<=
FX

Atom

atom before_excludatom before_includatom countatom count_distinctatom count_lrtrimatom count_lrtrim_distinctatom distinctatom distinct_lrtrimatom distinct_lrtrim_1sbeforeatom findatom find_lrtrimatom getatom get_firstatom get_first_lrtrimatom get_lastatom get_last_lrtrimatom get_lrtrimatom lrtrimatom positionatom position_lrtrimatom size

File

file createfile load

Date

date adddate addtdate current_msdate current_nsdate curdatedate current_datedate current_timedate current_timestampdate curtimedate curtimestampdate dateadddate dateaddtdate datediffdate datedifftdate ts_to_longdate dt_to_longdate day_of_monthdate day_of_weekdate day_of_yeardate daynamedate diffdate difftdate full_systimestampdate hourdate is_valid_datedate is_valid_datedate is_valid_timedate is_valid_timestampdate is_valid_timestampdate formatdate minutedate monthdate monthnamedate secondedate sysdatedate systimedate systimestampdate systimestamp_mindate timedate year

Math

math absmath acosmath asinmath atanmath atan2math avgmath bit_andmath bit_ormath bit_xormath cbrtmath ceilmath ceilingmath cosmath coshmath cotmath decimal_formatmath deg_to_radmath emath expmath expm1math floormath hypotmath logmath log10math log1pmath maxmath minmath modmath pimath powmath powermath rad_to_degmath randommath rintmath roundmath signmath signummath sinmath sinhmath sqrtmath tanmath tanhmath ulp

String

string asciistring binstring bit_lengthstring charstring char_lengthstring char_to_intconcatstring levenshtein_distancestring countstring encode_b64string decode_b64string del_char_before_each_linestring ends_withstring first_letter_upperstring first_letterstring generate_random_strstring hexstring hex_to_intstring hex_to_strstring indentstring instrstring instrstring int_to_charstring int_to_hexstring int_to_octstring is_letterstring is_alpha_num_udsstring is_alpha_numstring is_number_charstring itrimstring lcasestring leftstring lengthstring likestring locatestring locatestring lowerstring lpadstring lrtrimstring lrtrim0string ltrimstring matchesstring midstring midstring not_likestring not_regexpstring octstring oct_to_intstring positionstring positionstring regexpstring repeatstring repeat_insert_strstring replacestring reversestring rightstring rpadstring rtrimstring spacestring splitstring starts_withstring starts_with_orstring str_to_hexstring strcmpstring strposstring strposstring sublrcharstring substrstring substrstring substringstring substringstring to_stringstring encodestring empty_if_nullstring null_if_emptystring trimstring txtstring txt2string ucasestring unhexstring upperstring zero

Type

type is_booltype is_chartype is_datetype is_decimaltype is_emailtype is_hourtype is_timetype is_hour_without_sectype is_integertype is_numbertype is_bytetype is_small_inttype is_medium_inttype is_inttype is_big_inttype is_floattype is_doubletype is_timestamptype is_valid_datetype is_valid_datetype is_valid_timetype is_valid_timestamptype is_valid_timestamptype is_varchar
User
user create user create|insert|adduser force create user force create|insert|adduser existuser first tab linkuser get tab linkuser set passworduser showuser get thoughtuser get process_tabuser stimulateuser tokenuser from tokenuser reset tokenuser reset all tokensuser show groupsuser show scriptsuser disable
Group
group add group create|insert|addgroup existgroup grant usergroup grant scriptgroup is granted usergroup is granted scriptgroup getgroup get usergroup get scriptgroup showgroup ungrant usergroup ungrant scriptgroup remove
Job
job add job create|insert|addjob showjob existjob generate updatejob updatejob removejob scheduler stopjob scheduler startjob scheduler restartjob scheduler status
Sequence
sequence showsequence get currentsequence add sequence create|insert|addsequence existsequence incrementsequence updatesequence generate updatesequence remove
JSON

Record

node create node create|insert|addnode existnode insert into objectnode shownode show detailednode count elementnode fieldsnode insert into arraynode insert into arraynode is arraynode is objectnode select elementnode update arraynode update objectnode delete from arraynode delete from object

In memory

json loadjson load processjson load selectjson load by refjson show keyjson insert into objectjson count elementjson select elementjson is objectjson is arrayjson is loadedjson docjson fieldsjson insert into arrayjson insert into arrayjson set into arrayjson update arrayjson update objectjson delete from arrayjson delete from objectjson unloadjson unload_all
Transaction
commitrollbacktransaction logs
File System
fs index sizefs data sizefs index calcul posfs index blockfs index countfs data blockfs data recordfs cache sizefs unused data blockfs unused nb blockfs unused last block
Metric
metric sessionsmetric index filesmetric data filesmetric systemmetric count cmdmetric count sessionmetric cmdmetric cpumetric current cpu jvmmetric current cpu systemmetric current free memmetric current free swap memmetric current mem jvmmetric current used memmetric current used swap memmetric datemetric file system rootsmetric java vendormetric java versionmetric memmetric sessmetric sessionmetric system architecturemetric system namemetric system nb processormetric system versionmetric total memmetric total swap mem
Environment variable
env set varenv incr varenv decr varenv get varenv exist varenv del varenv show
Session

WS Session

@chat@cmdid@count sessions@sessions@sid

DB Session

byecmdidcount sessionsexithelpquitsessionssidwho
Parameter
parameter add sequence create|insert|addparameter existparameter get value get_paramparameter get lookedparameter lookparameter removeparameter showparameter unlookparameter updateparameter generate update
Configuration
config max sessionconfig remote accessconfig serverconfig server portconfig session connect timeoutconfig session timeoutconfig web server portconfig native languageconfig data block sizeconfig max data block sizeconfig nb data file openconfig nb index fileconfig nb index file open
Log
log tracelog showlog current id
Graph
graph symbolgraph thoughtgraph relationgraph refresh
Server
idai firstnameai lastnamename ai nameshutdownstopversionexceeded sessionsreset exceeded sessions@exceeded sessions@reset exceeded sessionssrc countrefresh treein editor




© 2012-2017 - Jimmitry Payet.