MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / _RdbSaveAttributeKeys

Function _RdbSaveAttributeKeys

src/serializers/encoder/v13/encode_schema.c:10–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include "../../../util/arr.h"
9
10static void _RdbSaveAttributeKeys
11(
12 RedisModuleIO *rdb,
13 GraphContext *gc
14) {
15 /* Format:
16 * #attribute keys
17 * attribute keys
18 */
19
20 uint count = GraphContext_AttributeCount(gc);
21 RedisModule_SaveUnsigned(rdb, count);
22 for(uint i = 0; i < count; i ++) {
23 char *key = gc->string_mapping[i];
24 RedisModule_SaveStringBuffer(rdb, key, strlen(key) + 1);
25 }
26}
27
28static inline void _RdbSaveFullTextIndexData
29(

Callers 1

RdbSaveGraphSchema_v13Function · 0.85

Calls 1

Tested by

no test coverage detected