List Operations
Important Payload Limit
Keep payloads under 20,480 bytes. This is the maximum size the engine can send or receive at one time. If you expect a response larger than 20,480 bytes, provide a callback function so the mod can use its internal fetch/chunking flow and deliver the reconstructed data to your callback.
This section contains documentation for the list operations of ArmaDragonflyClient that allow for working with ordered collections of items.
Available Functions
- listAdd - Add an item to a list
- listGet - Get items from a list
- listLoad - Load a list from the database
- listRemove - Remove an item from a list
- listSet - Set an item in a list
Example Usage
// Add an item to a list
["myList", ["myItem"]] call dragonfly_db_fnc_listAdd;
// Set an item at a specific index
["myList", 0, [myNewValue]] call dragonfly_db_fnc_listSet;
// Get an item at a specific index
["myList", 0, "myFunction"] call dragonfly_db_fnc_listGet;
// Load all items from a list
["myList", "myFunction"] call dragonfly_db_fnc_listLoad;
// Remove an item at a specific index
["myList", 0] call dragonfly_db_fnc_listRemove;