[{"data":1,"prerenderedAt":384},["ShallowReactive",2],{"content-query-7LGqzlKYr3":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"body":9,"_type":378,"_id":379,"_source":380,"_file":381,"_stem":382,"_extension":383},"/ramdb/generic/fetch","generic",false,"","ramdb_db_fnc_fetch",{"type":10,"children":11,"toc":368},"root",[12,19,26,32,38,51,57,239,245,250,270,276,281,287,317,323],{"type":13,"tag":14,"props":15,"children":16},"element","h1",{"id":8},[17],{"type":18,"value":8},"text",{"type":13,"tag":20,"props":21,"children":23},"h2",{"id":22},"description",[24],{"type":18,"value":25},"Description",{"type":13,"tag":27,"props":28,"children":29},"p",{},[30],{"type":18,"value":31},"Handles data chunks received from the database extension when data is too large to be returned in a single callback. This function collects all chunks of data, reassembles them in the correct order, and then passes the complete data to the handler function.",{"type":13,"tag":20,"props":33,"children":35},{"id":34},"syntax",[36],{"type":18,"value":37},"Syntax",{"type":13,"tag":39,"props":40,"children":45},"pre",{"className":41,"code":43,"language":44,"meta":7},[42],"language-sqf","[_uniqueID, _function, _index, _total, _datachunk, _call, _netId] call ramdb_db_fnc_fetch\n","sqf",[46],{"type":13,"tag":47,"props":48,"children":49},"code",{"__ignoreMap":7},[50],{"type":18,"value":43},{"type":13,"tag":20,"props":52,"children":54},{"id":53},"parameters",[55],{"type":18,"value":56},"Parameters",{"type":13,"tag":58,"props":59,"children":60},"table",{},[61,84],{"type":13,"tag":62,"props":63,"children":64},"thead",{},[65],{"type":13,"tag":66,"props":67,"children":68},"tr",{},[69,75,80],{"type":13,"tag":70,"props":71,"children":72},"th",{},[73],{"type":18,"value":74},"Parameter",{"type":13,"tag":70,"props":76,"children":77},{},[78],{"type":18,"value":79},"Type",{"type":13,"tag":70,"props":81,"children":82},{},[83],{"type":18,"value":25},{"type":13,"tag":85,"props":86,"children":87},"tbody",{},[88,111,132,154,175,196,218],{"type":13,"tag":66,"props":89,"children":90},{},[91,101,106],{"type":13,"tag":92,"props":93,"children":94},"td",{},[95],{"type":13,"tag":47,"props":96,"children":98},{"className":97},[],[99],{"type":18,"value":100},"_uniqueID",{"type":13,"tag":92,"props":102,"children":103},{},[104],{"type":18,"value":105},"String",{"type":13,"tag":92,"props":107,"children":108},{},[109],{"type":18,"value":110},"Unique identifier for this data fetch operation",{"type":13,"tag":66,"props":112,"children":113},{},[114,123,127],{"type":13,"tag":92,"props":115,"children":116},{},[117],{"type":13,"tag":47,"props":118,"children":120},{"className":119},[],[121],{"type":18,"value":122},"_function",{"type":13,"tag":92,"props":124,"children":125},{},[126],{"type":18,"value":105},{"type":13,"tag":92,"props":128,"children":129},{},[130],{"type":18,"value":131},"Name of the function to call after data is assembled",{"type":13,"tag":66,"props":133,"children":134},{},[135,144,149],{"type":13,"tag":92,"props":136,"children":137},{},[138],{"type":13,"tag":47,"props":139,"children":141},{"className":140},[],[142],{"type":18,"value":143},"_index",{"type":13,"tag":92,"props":145,"children":146},{},[147],{"type":18,"value":148},"Number",{"type":13,"tag":92,"props":150,"children":151},{},[152],{"type":18,"value":153},"Current chunk index (0-based)",{"type":13,"tag":66,"props":155,"children":156},{},[157,166,170],{"type":13,"tag":92,"props":158,"children":159},{},[160],{"type":13,"tag":47,"props":161,"children":163},{"className":162},[],[164],{"type":18,"value":165},"_total",{"type":13,"tag":92,"props":167,"children":168},{},[169],{"type":18,"value":148},{"type":13,"tag":92,"props":171,"children":172},{},[173],{"type":18,"value":174},"Total number of chunks expected",{"type":13,"tag":66,"props":176,"children":177},{},[178,187,191],{"type":13,"tag":92,"props":179,"children":180},{},[181],{"type":13,"tag":47,"props":182,"children":184},{"className":183},[],[185],{"type":18,"value":186},"_datachunk",{"type":13,"tag":92,"props":188,"children":189},{},[190],{"type":18,"value":105},{"type":13,"tag":92,"props":192,"children":193},{},[194],{"type":18,"value":195},"The chunk of data being received",{"type":13,"tag":66,"props":197,"children":198},{},[199,208,213],{"type":13,"tag":92,"props":200,"children":201},{},[202],{"type":13,"tag":47,"props":203,"children":205},{"className":204},[],[206],{"type":18,"value":207},"_call",{"type":13,"tag":92,"props":209,"children":210},{},[211],{"type":18,"value":212},"Boolean",{"type":13,"tag":92,"props":214,"children":215},{},[216],{"type":18,"value":217},"Whether to call the function directly (true) or spawn (false)",{"type":13,"tag":66,"props":219,"children":220},{},[221,230,234],{"type":13,"tag":92,"props":222,"children":223},{},[224],{"type":13,"tag":47,"props":225,"children":227},{"className":226},[],[228],{"type":18,"value":229},"_netId",{"type":13,"tag":92,"props":231,"children":232},{},[233],{"type":18,"value":105},{"type":13,"tag":92,"props":235,"children":236},{},[237],{"type":18,"value":238},"(Optional) NetID of the player to whom the data belongs",{"type":13,"tag":20,"props":240,"children":242},{"id":241},"return-value",[243],{"type":18,"value":244},"Return Value",{"type":13,"tag":27,"props":246,"children":247},{},[248],{"type":18,"value":249},"None. When all chunks are received, the function will:",{"type":13,"tag":251,"props":252,"children":253},"ol",{},[254,260,265],{"type":13,"tag":255,"props":256,"children":257},"li",{},[258],{"type":18,"value":259},"Assemble the complete data string",{"type":13,"tag":255,"props":261,"children":262},{},[263],{"type":18,"value":264},"Parse it as a simple array",{"type":13,"tag":255,"props":266,"children":267},{},[268],{"type":18,"value":269},"Call the specified handler function with the parsed data",{"type":13,"tag":20,"props":271,"children":273},{"id":272},"examples",[274],{"type":18,"value":275},"Examples",{"type":13,"tag":27,"props":277,"children":278},{},[279],{"type":18,"value":280},"This function is typically not called directly but is triggered by the extension's callback mechanism when large datasets are retrieved.",{"type":13,"tag":20,"props":282,"children":284},{"id":283},"notes",[285],{"type":18,"value":286},"Notes",{"type":13,"tag":288,"props":289,"children":290},"ul",{},[291,302,307,312],{"type":13,"tag":255,"props":292,"children":293},{},[294,296],{"type":18,"value":295},"The function stores received chunks in the global array ",{"type":13,"tag":47,"props":297,"children":299},{"className":298},[],[300],{"type":18,"value":301},"ramdb_db_fetch_array",{"type":13,"tag":255,"props":303,"children":304},{},[305],{"type":18,"value":306},"Chunks are sorted by their index to ensure correct assembly regardless of arrival order",{"type":13,"tag":255,"props":308,"children":309},{},[310],{"type":18,"value":311},"After successful processing, the chunks for this uniqueID are removed from the array",{"type":13,"tag":255,"props":313,"children":314},{},[315],{"type":18,"value":316},"This function is essential for handling large datasets that exceed the callback buffer limit",{"type":13,"tag":20,"props":318,"children":320},{"id":319},"links",[321],{"type":18,"value":322},"Links",{"type":13,"tag":27,"props":324,"children":325},{},[326,333,335,340,341,347,348,354,355,361,362],{"type":13,"tag":327,"props":328,"children":330},"a",{"href":329},"/ramdb/generic/delete",[331],{"type":18,"value":332},"Delete Key",{"type":18,"value":334}," |\n",{"type":13,"tag":327,"props":336,"children":337},{"href":4},[338],{"type":18,"value":339},"Fetch Key",{"type":18,"value":334},{"type":13,"tag":327,"props":342,"children":344},{"href":343},"/ramdb/generic/get",[345],{"type":18,"value":346},"Get Key",{"type":18,"value":334},{"type":13,"tag":327,"props":349,"children":351},{"href":350},"/ramdb/generic/load",[352],{"type":18,"value":353},"Load DB",{"type":18,"value":334},{"type":13,"tag":327,"props":356,"children":358},{"href":357},"/ramdb/generic/save",[359],{"type":18,"value":360},"Save DB",{"type":18,"value":334},{"type":13,"tag":327,"props":363,"children":365},{"href":364},"/ramdb/generic/set",[366],{"type":18,"value":367},"Set Key",{"title":7,"searchDepth":369,"depth":369,"links":370},2,[371,372,373,374,375,376,377],{"id":22,"depth":369,"text":25},{"id":34,"depth":369,"text":37},{"id":53,"depth":369,"text":56},{"id":241,"depth":369,"text":244},{"id":272,"depth":369,"text":275},{"id":283,"depth":369,"text":286},{"id":319,"depth":369,"text":322},"markdown","content:ramdb:generic:fetch.md","content","ramdb/generic/fetch.md","ramdb/generic/fetch","md",1742777962296]