[{"data":1,"prerenderedAt":219},["ShallowReactive",2],{"content-query-fPQJuOZ9It":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"icon":9,"body":10,"_type":213,"_id":214,"_source":215,"_file":216,"_stem":217,"_extension":218},"/ramdb/generic/load","generic",false,"","ArmaRAMDb - Load DB","mdi:file-text-outline",{"type":11,"children":12,"toc":199},"root",[13,21,28,34,40,53,59,64,70,75,81,88,97,103,112,118,148,154],{"type":14,"tag":15,"props":16,"children":18},"element","h1",{"id":17},"ramdb_db_fnc_load",[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},"Loads the database from disk storage. This function restores all data (key-value pairs, hash tables, and lists) from the previously saved database file.",{"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","[] call ramdb_db_fnc_load\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":29,"props":60,"children":61},{},[62],{"type":20,"value":63},"None. This function does not require any parameters.",{"type":14,"tag":22,"props":65,"children":67},{"id":66},"return-value",[68],{"type":20,"value":69},"Return Value",{"type":14,"tag":29,"props":71,"children":72},{},[73],{"type":20,"value":74},"None. The operation runs synchronously and loads the database immediately.",{"type":14,"tag":22,"props":76,"children":78},{"id":77},"examples",[79],{"type":20,"value":80},"Examples",{"type":14,"tag":82,"props":83,"children":85},"h3",{"id":84},"load-the-database-on-the-server",[86],{"type":20,"value":87},"Load the database on the server:",{"type":14,"tag":41,"props":89,"children":92},{"className":90,"code":91,"language":46,"meta":7},[44],"[] call ramdb_db_fnc_load;\n",[93],{"type":14,"tag":49,"props":94,"children":95},{"__ignoreMap":7},[96],{"type":20,"value":91},{"type":14,"tag":82,"props":98,"children":100},{"id":99},"call-the-load-function-remotely-from-a-client",[101],{"type":20,"value":102},"Call the load function remotely from a client:",{"type":14,"tag":41,"props":104,"children":107},{"className":105,"code":106,"language":46,"meta":7},[44],"[] remoteExecCall [\"ramdb_db_fnc_load\", 2, false];\n",[108],{"type":14,"tag":49,"props":109,"children":110},{"__ignoreMap":7},[111],{"type":20,"value":106},{"type":14,"tag":22,"props":113,"children":115},{"id":114},"notes",[116],{"type":20,"value":117},"Notes",{"type":14,"tag":119,"props":120,"children":121},"ul",{},[122,128,133,138,143],{"type":14,"tag":123,"props":124,"children":125},"li",{},[126],{"type":20,"value":127},"This function should typically be called during server initialization",{"type":14,"tag":123,"props":129,"children":130},{},[131],{"type":20,"value":132},"Any existing data in memory will be overwritten with the data from disk",{"type":14,"tag":123,"props":134,"children":135},{},[136],{"type":20,"value":137},"If no database file exists, nothing will happen",{"type":14,"tag":123,"props":139,"children":140},{},[141],{"type":20,"value":142},"Loading does not affect ongoing operations, but might replace values in memory",{"type":14,"tag":123,"props":144,"children":145},{},[146],{"type":20,"value":147},"For safety, it's recommended to call this function only when necessary",{"type":14,"tag":22,"props":149,"children":151},{"id":150},"links",[152],{"type":20,"value":153},"Links",{"type":14,"tag":29,"props":155,"children":156},{},[157,164,166,172,173,179,180,185,186,192,193],{"type":14,"tag":158,"props":159,"children":161},"a",{"href":160},"/ramdb/generic/delete",[162],{"type":20,"value":163},"Delete Key",{"type":20,"value":165}," |\n",{"type":14,"tag":158,"props":167,"children":169},{"href":168},"/ramdb/generic/fetch",[170],{"type":20,"value":171},"Fetch Key",{"type":20,"value":165},{"type":14,"tag":158,"props":174,"children":176},{"href":175},"/ramdb/generic/get",[177],{"type":20,"value":178},"Get Key",{"type":20,"value":165},{"type":14,"tag":158,"props":181,"children":182},{"href":4},[183],{"type":20,"value":184},"Load DB",{"type":20,"value":165},{"type":14,"tag":158,"props":187,"children":189},{"href":188},"/ramdb/generic/save",[190],{"type":20,"value":191},"Save DB",{"type":20,"value":165},{"type":14,"tag":158,"props":194,"children":196},{"href":195},"/ramdb/generic/set",[197],{"type":20,"value":198},"Set Key",{"title":7,"searchDepth":200,"depth":200,"links":201},2,[202,203,204,205,206,211,212],{"id":24,"depth":200,"text":27},{"id":36,"depth":200,"text":39},{"id":55,"depth":200,"text":58},{"id":66,"depth":200,"text":69},{"id":77,"depth":200,"text":80,"children":207},[208,210],{"id":84,"depth":209,"text":87},3,{"id":99,"depth":209,"text":102},{"id":114,"depth":200,"text":117},{"id":150,"depth":200,"text":153},"markdown","content:ramdb:generic:load.md","content","ramdb/generic/load.md","ramdb/generic/load","md",1742777962297]