[{"data":1,"prerenderedAt":339},["ShallowReactive",2],{"content-query-zUbhDFzyYy":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"icon":9,"body":10,"_type":333,"_id":334,"_source":335,"_file":336,"_stem":337,"_extension":338},"/ramdb/generic/get","generic",false,"","ArmaRAMDb - Get Key","mdi:file-text-outline",{"type":11,"children":12,"toc":319},"root",[13,21,28,34,40,53,59,177,183,188,194,201,210,216,225,231,268,274],{"type":14,"tag":15,"props":16,"children":18},"element","h1",{"id":17},"ramdb_db_fnc_get",[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},"Retrieves the value of a stored key from the database. This function performs an asynchronous request to the database and passes the retrieved data to the specified callback function.",{"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","[_key, _function, _call, _netId] call ramdb_db_fnc_get\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,86],{"type":14,"tag":64,"props":65,"children":66},"thead",{},[67],{"type":14,"tag":68,"props":69,"children":70},"tr",{},[71,77,82],{"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":87,"props":88,"children":89},"tbody",{},[90,113,134,156],{"type":14,"tag":68,"props":91,"children":92},{},[93,103,108],{"type":14,"tag":94,"props":95,"children":96},"td",{},[97],{"type":14,"tag":49,"props":98,"children":100},{"className":99},[],[101],{"type":20,"value":102},"_key",{"type":14,"tag":94,"props":104,"children":105},{},[106],{"type":20,"value":107},"String",{"type":14,"tag":94,"props":109,"children":110},{},[111],{"type":20,"value":112},"Name of the stored key to retrieve from the database",{"type":14,"tag":68,"props":114,"children":115},{},[116,125,129],{"type":14,"tag":94,"props":117,"children":118},{},[119],{"type":14,"tag":49,"props":120,"children":122},{"className":121},[],[123],{"type":20,"value":124},"_function",{"type":14,"tag":94,"props":126,"children":127},{},[128],{"type":20,"value":107},{"type":14,"tag":94,"props":130,"children":131},{},[132],{"type":20,"value":133},"Name of the function to call when data is retrieved",{"type":14,"tag":68,"props":135,"children":136},{},[137,146,151],{"type":14,"tag":94,"props":138,"children":139},{},[140],{"type":14,"tag":49,"props":141,"children":143},{"className":142},[],[144],{"type":20,"value":145},"_call",{"type":14,"tag":94,"props":147,"children":148},{},[149],{"type":20,"value":150},"Boolean",{"type":14,"tag":94,"props":152,"children":153},{},[154],{"type":20,"value":155},"Whether to call the function directly (true) or spawn (false)",{"type":14,"tag":68,"props":157,"children":158},{},[159,168,172],{"type":14,"tag":94,"props":160,"children":161},{},[162],{"type":14,"tag":49,"props":163,"children":165},{"className":164},[],[166],{"type":20,"value":167},"_netId",{"type":14,"tag":94,"props":169,"children":170},{},[171],{"type":20,"value":107},{"type":14,"tag":94,"props":173,"children":174},{},[175],{"type":20,"value":176},"(Optional) NetID of the player to whom the data should be returned",{"type":14,"tag":22,"props":178,"children":180},{"id":179},"return-value",[181],{"type":20,"value":182},"Return Value",{"type":14,"tag":29,"props":184,"children":185},{},[186],{"type":20,"value":187},"None. When data is retrieved, it will be passed to the specified function. The operation runs asynchronously.",{"type":14,"tag":22,"props":189,"children":191},{"id":190},"examples",[192],{"type":20,"value":193},"Examples",{"type":14,"tag":195,"props":196,"children":198},"h3",{"id":197},"retrieve-data-in-singleplayer-or-on-the-server",[199],{"type":20,"value":200},"Retrieve data in singleplayer or on the server:",{"type":14,"tag":41,"props":202,"children":205},{"className":203,"code":204,"language":46,"meta":7},[44],"[getPlayerUID player, \"ramdb_db_fnc_test\"] call ramdb_db_fnc_get;\n",[206],{"type":14,"tag":49,"props":207,"children":208},{"__ignoreMap":7},[209],{"type":20,"value":204},{"type":14,"tag":195,"props":211,"children":213},{"id":212},"retrieve-data-on-the-server-and-send-to-a-specific-client",[214],{"type":20,"value":215},"Retrieve data on the server and send to a specific client:",{"type":14,"tag":41,"props":217,"children":220},{"className":218,"code":219,"language":46,"meta":7},[44],"[getPlayerUID player, \"ramdb_db_fnc_test\", false, netId player] remoteExecCall [\"ramdb_db_fnc_get\", 2, false];\n",[221],{"type":14,"tag":49,"props":222,"children":223},{"__ignoreMap":7},[224],{"type":20,"value":219},{"type":14,"tag":22,"props":226,"children":228},{"id":227},"notes",[229],{"type":20,"value":230},"Notes",{"type":14,"tag":232,"props":233,"children":234},"ul",{},[235,241,246,251,256],{"type":14,"tag":236,"props":237,"children":238},"li",{},[239],{"type":20,"value":240},"The function exit with an error if the key or function parameters are empty",{"type":14,"tag":236,"props":242,"children":243},{},[244],{"type":20,"value":245},"Data is processed through the scheduler system, which manages callback responses",{"type":14,"tag":236,"props":247,"children":248},{},[249],{"type":20,"value":250},"For large data that exceeds buffer limits, it will be automatically chunked and reassembled",{"type":14,"tag":236,"props":252,"children":253},{},[254],{"type":20,"value":255},"The callback function must be defined to accept the retrieved data",{"type":14,"tag":236,"props":257,"children":258},{},[259,261,266],{"type":20,"value":260},"The ",{"type":14,"tag":49,"props":262,"children":264},{"className":263},[],[265],{"type":20,"value":145},{"type":20,"value":267}," parameter determines whether the callback is executed directly or spawned in a separate thread",{"type":14,"tag":22,"props":269,"children":271},{"id":270},"links",[272],{"type":20,"value":273},"Links",{"type":14,"tag":29,"props":275,"children":276},{},[277,284,286,292,293,298,299,305,306,312,313],{"type":14,"tag":278,"props":279,"children":281},"a",{"href":280},"/ramdb/generic/delete",[282],{"type":20,"value":283},"Delete Key",{"type":20,"value":285}," |\n",{"type":14,"tag":278,"props":287,"children":289},{"href":288},"/ramdb/generic/fetch",[290],{"type":20,"value":291},"Fetch Key",{"type":20,"value":285},{"type":14,"tag":278,"props":294,"children":295},{"href":4},[296],{"type":20,"value":297},"Get Key",{"type":20,"value":285},{"type":14,"tag":278,"props":300,"children":302},{"href":301},"/ramdb/generic/load",[303],{"type":20,"value":304},"Load DB",{"type":20,"value":285},{"type":14,"tag":278,"props":307,"children":309},{"href":308},"/ramdb/generic/save",[310],{"type":20,"value":311},"Save DB",{"type":20,"value":285},{"type":14,"tag":278,"props":314,"children":316},{"href":315},"/ramdb/generic/set",[317],{"type":20,"value":318},"Set Key",{"title":7,"searchDepth":320,"depth":320,"links":321},2,[322,323,324,325,326,331,332],{"id":24,"depth":320,"text":27},{"id":36,"depth":320,"text":39},{"id":55,"depth":320,"text":58},{"id":179,"depth":320,"text":182},{"id":190,"depth":320,"text":193,"children":327},[328,330],{"id":197,"depth":329,"text":200},3,{"id":212,"depth":329,"text":215},{"id":227,"depth":320,"text":230},{"id":270,"depth":320,"text":273},"markdown","content:ramdb:generic:get.md","content","ramdb/generic/get.md","ramdb/generic/get","md",1742777962296]