[{"data":1,"prerenderedAt":415},["ShallowReactive",2],{"content-query-B3XNhouKM9":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"icon":9,"body":10,"_type":409,"_id":410,"_source":411,"_file":412,"_stem":413,"_extension":414},"/ramdb/main/handler","main",false,"","ArmaRAMDb - Handler","mdi:file-text-outline",{"type":11,"children":12,"toc":394},"root",[13,21,28,34,40,53,59,230,236,241,247,254,263,269,278,284,293,299,336,342],{"type":14,"tag":15,"props":16,"children":18},"element","h1",{"id":17},"ramdb_db_fnc_handler",[19],{"type":20,"value":17},"text",{"type":14,"tag":22,"props":23,"children":25},"h2",{"id":24},"description",[26],{"type":20,"value":27},"Description",{"type":14,"tag":29,"props":30,"children":31},"p",{},[32],{"type":20,"value":33},"Handles data received from the database and routes it to the appropriate function. This function is a critical component of the callback system, receiving data from database operations and directing it to the specified function, either locally or to a remote client.",{"type":14,"tag":22,"props":35,"children":37},{"id":36},"syntax",[38],{"type":20,"value":39},"Syntax",{"type":14,"tag":41,"props":42,"children":47},"pre",{"className":43,"code":45,"language":46,"meta":7},[44],"language-sqf","[_uniqueID, _function, _call, _data, _netId] call ramdb_db_fnc_handler\n","sqf",[48],{"type":14,"tag":49,"props":50,"children":51},"code",{"__ignoreMap":7},[52],{"type":20,"value":45},{"type":14,"tag":22,"props":54,"children":56},{"id":55},"parameters",[57],{"type":20,"value":58},"Parameters",{"type":14,"tag":60,"props":61,"children":62},"table",{},[63,91],{"type":14,"tag":64,"props":65,"children":66},"thead",{},[67],{"type":14,"tag":68,"props":69,"children":70},"tr",{},[71,77,82,86],{"type":14,"tag":72,"props":73,"children":74},"th",{},[75],{"type":20,"value":76},"Parameter",{"type":14,"tag":72,"props":78,"children":79},{},[80],{"type":20,"value":81},"Type",{"type":14,"tag":72,"props":83,"children":84},{},[85],{"type":20,"value":27},{"type":14,"tag":72,"props":87,"children":88},{},[89],{"type":20,"value":90},"Default",{"type":14,"tag":92,"props":93,"children":94},"tbody",{},[95,123,148,175,204],{"type":14,"tag":68,"props":96,"children":97},{},[98,108,113,118],{"type":14,"tag":99,"props":100,"children":101},"td",{},[102],{"type":14,"tag":49,"props":103,"children":105},{"className":104},[],[106],{"type":20,"value":107},"_uniqueID",{"type":14,"tag":99,"props":109,"children":110},{},[111],{"type":20,"value":112},"String",{"type":14,"tag":99,"props":114,"children":115},{},[116],{"type":20,"value":117},"Unique identifier for the data chunk",{"type":14,"tag":99,"props":119,"children":120},{},[121],{"type":20,"value":122},"\"\"",{"type":14,"tag":68,"props":124,"children":125},{},[126,135,139,144],{"type":14,"tag":99,"props":127,"children":128},{},[129],{"type":14,"tag":49,"props":130,"children":132},{"className":131},[],[133],{"type":20,"value":134},"_function",{"type":14,"tag":99,"props":136,"children":137},{},[138],{"type":20,"value":112},{"type":14,"tag":99,"props":140,"children":141},{},[142],{"type":20,"value":143},"Name of function to receive the data",{"type":14,"tag":99,"props":145,"children":146},{},[147],{"type":20,"value":122},{"type":14,"tag":68,"props":149,"children":150},{},[151,160,165,170],{"type":14,"tag":99,"props":152,"children":153},{},[154],{"type":14,"tag":49,"props":155,"children":157},{"className":156},[],[158],{"type":20,"value":159},"_call",{"type":14,"tag":99,"props":161,"children":162},{},[163],{"type":20,"value":164},"Boolean",{"type":14,"tag":99,"props":166,"children":167},{},[168],{"type":20,"value":169},"Whether to call the function directly (true) or spawn (false)",{"type":14,"tag":99,"props":171,"children":172},{},[173],{"type":20,"value":174},"false",{"type":14,"tag":68,"props":176,"children":177},{},[178,187,192,197],{"type":14,"tag":99,"props":179,"children":180},{},[181],{"type":14,"tag":49,"props":182,"children":184},{"className":183},[],[185],{"type":20,"value":186},"_data",{"type":14,"tag":99,"props":188,"children":189},{},[190],{"type":20,"value":191},"Array, String, Number, or Boolean",{"type":14,"tag":99,"props":193,"children":194},{},[195],{"type":20,"value":196},"The data retrieved from the database",{"type":14,"tag":99,"props":198,"children":199},{},[200],{"type":14,"tag":201,"props":202,"children":203},"span",{},[],{"type":14,"tag":68,"props":205,"children":206},{},[207,216,220,225],{"type":14,"tag":99,"props":208,"children":209},{},[210],{"type":14,"tag":49,"props":211,"children":213},{"className":212},[],[214],{"type":20,"value":215},"_netId",{"type":14,"tag":99,"props":217,"children":218},{},[219],{"type":20,"value":112},{"type":14,"tag":99,"props":221,"children":222},{},[223],{"type":20,"value":224},"(Optional) NetID of the player to receive the data",{"type":14,"tag":99,"props":226,"children":227},{},[228],{"type":20,"value":229},"nil",{"type":14,"tag":22,"props":231,"children":233},{"id":232},"return-value",[234],{"type":20,"value":235},"Return Value",{"type":14,"tag":29,"props":237,"children":238},{},[239],{"type":20,"value":240},"None. The data is passed to the specified function for processing.",{"type":14,"tag":22,"props":242,"children":244},{"id":243},"examples",[245],{"type":20,"value":246},"Examples",{"type":14,"tag":248,"props":249,"children":251},"h3",{"id":250},"process-data-locally",[252],{"type":20,"value":253},"Process data locally:",{"type":14,"tag":41,"props":255,"children":258},{"className":256,"code":257,"language":46,"meta":7},[44],"[\"0123456789\", \"ramdb_db_fnc_test\", false, [\"Hello World!\"]] call ramdb_db_fnc_handler;\n",[259],{"type":14,"tag":49,"props":260,"children":261},{"__ignoreMap":7},[262],{"type":20,"value":257},{"type":14,"tag":248,"props":264,"children":266},{"id":265},"send-data-to-a-specific-client",[267],{"type":20,"value":268},"Send data to a specific client:",{"type":14,"tag":41,"props":270,"children":273},{"className":271,"code":272,"language":46,"meta":7},[44],"[\"0123456789\", \"ramdb_db_fnc_test\", false, [\"Hello World!\"], netId player] remoteExecCall [\"ramdb_db_fnc_handler\", 2, false];\n",[274],{"type":14,"tag":49,"props":275,"children":276},{"__ignoreMap":7},[277],{"type":20,"value":272},{"type":14,"tag":248,"props":279,"children":281},{"id":280},"process-data-with-direct-call-synchronous",[282],{"type":20,"value":283},"Process data with direct call (synchronous):",{"type":14,"tag":41,"props":285,"children":288},{"className":286,"code":287,"language":46,"meta":7},[44],"[\"0123456789\", \"ramdb_db_fnc_processInventory\", true, [[\"weapon1\", 30], [\"item2\", 5]]] call ramdb_db_fnc_handler;\n",[289],{"type":14,"tag":49,"props":290,"children":291},{"__ignoreMap":7},[292],{"type":20,"value":287},{"type":14,"tag":22,"props":294,"children":296},{"id":295},"notes",[297],{"type":20,"value":298},"Notes",{"type":14,"tag":300,"props":301,"children":302},"ul",{},[303,309,314,326,331],{"type":14,"tag":304,"props":305,"children":306},"li",{},[307],{"type":20,"value":308},"The function validates that both the function name and data are valid before proceeding",{"type":14,"tag":304,"props":310,"children":311},{},[312],{"type":20,"value":313},"When a netId is provided, the data is sent to that specific client using remoteExec",{"type":14,"tag":304,"props":315,"children":316},{},[317,319,324],{"type":20,"value":318},"The ",{"type":14,"tag":49,"props":320,"children":322},{"className":321},[],[323],{"type":20,"value":159},{"type":20,"value":325}," parameter determines whether the function is called directly (synchronous) or spawned (asynchronous)",{"type":14,"tag":304,"props":327,"children":328},{},[329],{"type":20,"value":330},"This function is typically called by the scheduler or other core components rather than directly by user code",{"type":14,"tag":304,"props":332,"children":333},{},[334],{"type":20,"value":335},"Each handler call is logged, which is useful for debugging data flow",{"type":14,"tag":22,"props":337,"children":339},{"id":338},"links",[340],{"type":20,"value":341},"Links",{"type":14,"tag":29,"props":343,"children":344},{},[345,352,354,359,360,366,367,373,374,380,381,387,388],{"type":14,"tag":346,"props":347,"children":349},"a",{"href":348},"/ramdb/main/addtask",[350],{"type":20,"value":351},"Add Task",{"type":20,"value":353}," |\n",{"type":14,"tag":346,"props":355,"children":356},{"href":4},[357],{"type":20,"value":358},"Handler",{"type":20,"value":353},{"type":14,"tag":346,"props":361,"children":363},{"href":362},"/ramdb/main/init",[364],{"type":20,"value":365},"Init",{"type":20,"value":353},{"type":14,"tag":346,"props":368,"children":370},{"href":369},"/ramdb/main/printaddonname",[371],{"type":20,"value":372},"Print Addon Name",{"type":20,"value":353},{"type":14,"tag":346,"props":375,"children":377},{"href":376},"/ramdb/main/processqueue",[378],{"type":20,"value":379},"Process Queue",{"type":20,"value":353},{"type":14,"tag":346,"props":382,"children":384},{"href":383},"/ramdb/main/scheduler",[385],{"type":20,"value":386},"Scheduler",{"type":20,"value":353},{"type":14,"tag":346,"props":389,"children":391},{"href":390},"/ramdb/main/test",[392],{"type":20,"value":393},"Test",{"title":7,"searchDepth":395,"depth":395,"links":396},2,[397,398,399,400,401,407,408],{"id":24,"depth":395,"text":27},{"id":36,"depth":395,"text":39},{"id":55,"depth":395,"text":58},{"id":232,"depth":395,"text":235},{"id":243,"depth":395,"text":246,"children":402},[403,405,406],{"id":250,"depth":404,"text":253},3,{"id":265,"depth":404,"text":268},{"id":280,"depth":404,"text":283},{"id":295,"depth":395,"text":298},{"id":338,"depth":395,"text":341},"markdown","content:ramdb:main:handler.md","content","ramdb/main/handler.md","ramdb/main/handler","md",1742777961748]