
This commit updates the documentation to reflect the current function names and link structure. Specifically, it addresses the following: * Corrected internal links within the documentation to point to the correct markdown files (e.g., `hashDelete.md` instead of `hashDelete`). * Updated related function references to reflect the current function names and include missing functions. * Removed outdated function references. * Added `ramdb_db_fnc_scheduler` to related functions where appropriate. * Updated the links section to use the correct markdown file names.
61 lines
2.1 KiB
Markdown
61 lines
2.1 KiB
Markdown
---
|
|
title: ArmaRAMDb - Hash Delete
|
|
icon: mdi:file-text-outline
|
|
excerpt: Remove the current client's hash table from database.
|
|
---
|
|
|
|
# ramdb_db_fnc_hashDelete
|
|
|
|
## Description
|
|
Removes the hash table associated with the current client/player from the database. Unlike `hashDeleteId`, this function automatically retrieves the appropriate hash ID based on the caller's identity, making it more convenient for removing the current client's hash data. This is useful for cleanup operations when a player disconnects or when resetting a client's stored data.
|
|
|
|
## Syntax
|
|
```sqf
|
|
[] call ramdb_db_fnc_hashDelete
|
|
```
|
|
|
|
## Parameters
|
|
None. This function automatically determines the hash ID based on the calling client.
|
|
|
|
## Return Value
|
|
None. The operation runs synchronously to delete the hash table for the current client.
|
|
|
|
## Examples
|
|
### Delete the current client's hash table:
|
|
```sqf
|
|
[] call ramdb_db_fnc_hashDelete;
|
|
```
|
|
|
|
### Delete a client's hash table from the server:
|
|
```sqf
|
|
[] remoteExecCall ["ramdb_db_fnc_hashDelete", 2, false];
|
|
```
|
|
|
|
## Notes
|
|
- This function only removes the hash table for the current client/player, not all hash tables
|
|
- It's similar to `hashDeleteId` but automatically determines the appropriate ID
|
|
- Cannot be undone unless you have a backup
|
|
- Should be used during player disconnection or when resetting a player's data
|
|
- Useful for cleanup operations to prevent data buildup from disconnected players
|
|
- More convenient than `hashDeleteId` when you want to remove the calling client's data
|
|
- All operations are logged for debugging purposes
|
|
|
|
## Related Functions
|
|
- `ramdb_db_fnc_hashDeleteId`: Removes a specific hash ID (when you need to specify the ID)
|
|
- `ramdb_db_fnc_hashSet`: Sets a value in the hash table
|
|
- `ramdb_db_fnc_hashGet`: Retrieves a value from the hash table
|
|
|
|
## Links
|
|
|
|
[Hash Delete](hashDelete.md) |
|
|
[Hash Delete ID](hashDeleteId.md) |
|
|
[Hash Get](hashGet.md) |
|
|
[Hash Get All](hashGetAll.md) |
|
|
[Hash Get All ID](hashGetAllId.md) |
|
|
[Hash Get ID](hashGetId.md) |
|
|
[Hash Remove](hashRemove.md) |
|
|
[Hash Remove ID](hashRemoveId.md) |
|
|
[Hash Set](hashSet.md) |
|
|
[Hash Set Bulk](hashSetBulk.md) |
|
|
[Hash Set ID](hashSetId.md) |
|
|
[Hash Set ID Bulk](hashSetIdBulk.md) |