MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / get_strprop

Function get_strprop

tools/cdb2_sqlreplay/cdb2_sqlreplay.cpp:94–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94static const char *get_strprop(cson_value *objval, const char *key) {
95 cson_object *obj;
96 cson_value_fetch_object(objval, &obj);
97 cson_value *propval = cson_object_get(obj, key);
98 if (propval == nullptr || !cson_value_is_string(propval))
99 return nullptr;
100 cson_string *cstr;
101 cson_value_fetch_string(propval, &cstr);
102 return cson_string_cstr(cstr);
103}
104
105static cson_array *get_arrprop(cson_value *objval, const char *key) {
106 cson_object *obj;

Callers 9

event_is_sqlFunction · 0.85
replay_transactionFunction · 0.85
add_to_transactionFunction · 0.85
do_bindingsFunction · 0.85
replayFunction · 0.85
handle_sqlFunction · 0.85
handle_newsqlFunction · 0.85
getMethod · 0.85
process_eventsFunction · 0.85

Calls 5

cson_value_fetch_objectFunction · 0.85
cson_object_getFunction · 0.85
cson_value_is_stringFunction · 0.85
cson_value_fetch_stringFunction · 0.85
cson_string_cstrFunction · 0.85

Tested by

no test coverage detected