[{"data":1,"prerenderedAt":431},["ShallowReactive",2],{"content-query-OO9BMDRlRH":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"icon":9,"body":10,"_type":425,"_id":426,"_source":427,"_file":428,"_stem":429,"_extension":430},"/ramdb/hashes/hashgetall","hashes",false,"","ArmaRAMDb - Hash Get All","mdi:file-text-outline",{"type":11,"children":12,"toc":410},"root",[13,22,29,44,50,62,68,184,190,195,201,208,217,223,232,238,247,253,317,323],{"type":14,"tag":15,"props":16,"children":18},"element","h1",{"id":17},"ramdb_db_fnc_hashgetall",[19],{"type":20,"value":21},"text","ramdb_db_fnc_hashGetAll",{"type":14,"tag":23,"props":24,"children":26},"h2",{"id":25},"description",[27],{"type":20,"value":28},"Description",{"type":14,"tag":30,"props":31,"children":32},"p",{},[33,35,42],{"type":20,"value":34},"Retrieves all fields and values from the hash table associated with the current client/player. This function automatically determines the appropriate hash ID based on the caller's identity, making it more convenient than ",{"type":14,"tag":36,"props":37,"children":39},"code",{"className":38},[],[40],{"type":20,"value":41},"hashGetAllId",{"type":20,"value":43}," which requires manually specifying an ID. It returns the entire hash table data through a callback function, allowing access to all stored key-value pairs at once.",{"type":14,"tag":23,"props":45,"children":47},{"id":46},"syntax",[48],{"type":20,"value":49},"Syntax",{"type":14,"tag":51,"props":52,"children":57},"pre",{"className":53,"code":55,"language":56,"meta":7},[54],"language-sqf","[_function, _call, _netId] call ramdb_db_fnc_hashGetAll\n","sqf",[58],{"type":14,"tag":36,"props":59,"children":60},{"__ignoreMap":7},[61],{"type":20,"value":55},{"type":14,"tag":23,"props":63,"children":65},{"id":64},"parameters",[66],{"type":20,"value":67},"Parameters",{"type":14,"tag":69,"props":70,"children":71},"table",{},[72,100],{"type":14,"tag":73,"props":74,"children":75},"thead",{},[76],{"type":14,"tag":77,"props":78,"children":79},"tr",{},[80,86,91,95],{"type":14,"tag":81,"props":82,"children":83},"th",{},[84],{"type":20,"value":85},"Parameter",{"type":14,"tag":81,"props":87,"children":88},{},[89],{"type":20,"value":90},"Type",{"type":14,"tag":81,"props":92,"children":93},{},[94],{"type":20,"value":28},{"type":14,"tag":81,"props":96,"children":97},{},[98],{"type":20,"value":99},"Default",{"type":14,"tag":101,"props":102,"children":103},"tbody",{},[104,132,159],{"type":14,"tag":77,"props":105,"children":106},{},[107,117,122,127],{"type":14,"tag":108,"props":109,"children":110},"td",{},[111],{"type":14,"tag":36,"props":112,"children":114},{"className":113},[],[115],{"type":20,"value":116},"_function",{"type":14,"tag":108,"props":118,"children":119},{},[120],{"type":20,"value":121},"String",{"type":14,"tag":108,"props":123,"children":124},{},[125],{"type":20,"value":126},"Name of the function to receive the retrieved data",{"type":14,"tag":108,"props":128,"children":129},{},[130],{"type":20,"value":131},"\"\"",{"type":14,"tag":77,"props":133,"children":134},{},[135,144,149,154],{"type":14,"tag":108,"props":136,"children":137},{},[138],{"type":14,"tag":36,"props":139,"children":141},{"className":140},[],[142],{"type":20,"value":143},"_call",{"type":14,"tag":108,"props":145,"children":146},{},[147],{"type":20,"value":148},"Boolean",{"type":14,"tag":108,"props":150,"children":151},{},[152],{"type":20,"value":153},"Whether to call the function directly (true) or spawn (false)",{"type":14,"tag":108,"props":155,"children":156},{},[157],{"type":20,"value":158},"false",{"type":14,"tag":77,"props":160,"children":161},{},[162,171,175,180],{"type":14,"tag":108,"props":163,"children":164},{},[165],{"type":14,"tag":36,"props":166,"children":168},{"className":167},[],[169],{"type":20,"value":170},"_netId",{"type":14,"tag":108,"props":172,"children":173},{},[174],{"type":20,"value":121},{"type":14,"tag":108,"props":176,"children":177},{},[178],{"type":20,"value":179},"(Optional) NetID of the player to receive the data",{"type":14,"tag":108,"props":181,"children":182},{},[183],{"type":20,"value":131},{"type":14,"tag":23,"props":185,"children":187},{"id":186},"return-value",[188],{"type":20,"value":189},"Return Value",{"type":14,"tag":30,"props":191,"children":192},{},[193],{"type":20,"value":194},"None. The retrieved data is passed to the specified callback function asynchronously.",{"type":14,"tag":23,"props":196,"children":198},{"id":197},"examples",[199],{"type":20,"value":200},"Examples",{"type":14,"tag":202,"props":203,"children":205},"h3",{"id":204},"retrieve-all-client-hash-data",[206],{"type":20,"value":207},"Retrieve all client hash data:",{"type":14,"tag":51,"props":209,"children":212},{"className":210,"code":211,"language":56,"meta":7},[54],"[\"ramdb_db_fnc_test\"] call ramdb_db_fnc_hashGetAll;\n",[213],{"type":14,"tag":36,"props":214,"children":215},{"__ignoreMap":7},[216],{"type":20,"value":211},{"type":14,"tag":202,"props":218,"children":220},{"id":219},"retrieve-data-with-synchronous-callback",[221],{"type":20,"value":222},"Retrieve data with synchronous callback:",{"type":14,"tag":51,"props":224,"children":227},{"className":225,"code":226,"language":56,"meta":7},[54],"[\"ramdb_db_fnc_processAllData\", true] call ramdb_db_fnc_hashGetAll;\n",[228],{"type":14,"tag":36,"props":229,"children":230},{"__ignoreMap":7},[231],{"type":20,"value":226},{"type":14,"tag":202,"props":233,"children":235},{"id":234},"retrieve-data-and-send-it-to-a-specific-client",[236],{"type":20,"value":237},"Retrieve data and send it to a specific client:",{"type":14,"tag":51,"props":239,"children":242},{"className":240,"code":241,"language":56,"meta":7},[54],"[\"ramdb_db_fnc_test\", false, netId player] remoteExecCall [\"ramdb_db_fnc_hashGetAll\", 2, false];\n",[243],{"type":14,"tag":36,"props":244,"children":245},{"__ignoreMap":7},[246],{"type":20,"value":241},{"type":14,"tag":23,"props":248,"children":250},{"id":249},"notes",[251],{"type":20,"value":252},"Notes",{"type":14,"tag":254,"props":255,"children":256},"ul",{},[257,263,268,273,278,290,295,307,312],{"type":14,"tag":258,"props":259,"children":260},"li",{},[261],{"type":20,"value":262},"Returns the complete hash table for the current client with all fields and values as a nested array",{"type":14,"tag":258,"props":264,"children":265},{},[266],{"type":20,"value":267},"The data is retrieved asynchronously through the extension's callback system",{"type":14,"tag":258,"props":269,"children":270},{},[271],{"type":20,"value":272},"The callback function name must be provided and is validated",{"type":14,"tag":258,"props":274,"children":275},{},[276],{"type":20,"value":277},"When a netId is provided, the data is sent to that specific client",{"type":14,"tag":258,"props":279,"children":280},{},[281,283,288],{"type":20,"value":282},"The ",{"type":14,"tag":36,"props":284,"children":286},{"className":285},[],[287],{"type":20,"value":143},{"type":20,"value":289}," parameter determines whether the function is called directly (synchronous) or spawned (asynchronous)",{"type":14,"tag":258,"props":291,"children":292},{},[293],{"type":20,"value":294},"This function automatically determines which hash table to use based on the caller's identity",{"type":14,"tag":258,"props":296,"children":297},{},[298,300,305],{"type":20,"value":299},"Use ",{"type":14,"tag":36,"props":301,"children":303},{"className":302},[],[304],{"type":20,"value":41},{"type":20,"value":306}," when you need to specify a particular hash table by ID",{"type":14,"tag":258,"props":308,"children":309},{},[310],{"type":20,"value":311},"For large hash tables, retrieving all data may impact performance",{"type":14,"tag":258,"props":313,"children":314},{},[315],{"type":20,"value":316},"All operations are logged for debugging purposes",{"type":14,"tag":23,"props":318,"children":320},{"id":319},"links",[321],{"type":20,"value":322},"Links",{"type":14,"tag":30,"props":324,"children":325},{},[326,333,335,341,342,348,349,354,355,361,362,368,369,375,376,382,383,389,390,396,397,403,404],{"type":14,"tag":327,"props":328,"children":330},"a",{"href":329},"/ramdb/hashes/hashdelete",[331],{"type":20,"value":332},"Hash Delete",{"type":20,"value":334}," |\n",{"type":14,"tag":327,"props":336,"children":338},{"href":337},"/ramdb/hashes/hashdeleteid",[339],{"type":20,"value":340},"Hash Delete ID",{"type":20,"value":334},{"type":14,"tag":327,"props":343,"children":345},{"href":344},"/ramdb/hashes/hashget",[346],{"type":20,"value":347},"Hash Get",{"type":20,"value":334},{"type":14,"tag":327,"props":350,"children":351},{"href":4},[352],{"type":20,"value":353},"Hash Get All",{"type":20,"value":334},{"type":14,"tag":327,"props":356,"children":358},{"href":357},"/ramdb/hashes/hashgetallid",[359],{"type":20,"value":360},"Hash Get All ID",{"type":20,"value":334},{"type":14,"tag":327,"props":363,"children":365},{"href":364},"/ramdb/hashes/hashgetid",[366],{"type":20,"value":367},"Hash Get ID",{"type":20,"value":334},{"type":14,"tag":327,"props":370,"children":372},{"href":371},"/ramdb/hashes/hashremove",[373],{"type":20,"value":374},"Hash Remove",{"type":20,"value":334},{"type":14,"tag":327,"props":377,"children":379},{"href":378},"/ramdb/hashes/hashremoveid",[380],{"type":20,"value":381},"Hash Remove ID",{"type":20,"value":334},{"type":14,"tag":327,"props":384,"children":386},{"href":385},"/ramdb/hashes/hashset",[387],{"type":20,"value":388},"Hash Set",{"type":20,"value":334},{"type":14,"tag":327,"props":391,"children":393},{"href":392},"/ramdb/hashes/hashsetbulk",[394],{"type":20,"value":395},"Hash Set Bulk",{"type":20,"value":334},{"type":14,"tag":327,"props":398,"children":400},{"href":399},"/ramdb/hashes/hashsetid",[401],{"type":20,"value":402},"Hash Set ID",{"type":20,"value":334},{"type":14,"tag":327,"props":405,"children":407},{"href":406},"/ramdb/hashes/hashsetidbulk",[408],{"type":20,"value":409},"Hash Set ID Bulk",{"title":7,"searchDepth":411,"depth":411,"links":412},2,[413,414,415,416,417,423,424],{"id":25,"depth":411,"text":28},{"id":46,"depth":411,"text":49},{"id":64,"depth":411,"text":67},{"id":186,"depth":411,"text":189},{"id":197,"depth":411,"text":200,"children":418},[419,421,422],{"id":204,"depth":420,"text":207},3,{"id":219,"depth":420,"text":222},{"id":234,"depth":420,"text":237},{"id":249,"depth":411,"text":252},{"id":319,"depth":411,"text":322},"markdown","content:ramdb:hashes:hashGetAll.md","content","ramdb/hashes/hashGetAll.md","ramdb/hashes/hashGetAll","md",1742777961984]