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

Function get_bind_array

db/eventlog.c:196–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196cson_array *get_bind_array(struct reqlogger *logger, int nfields)
197{
198 if (eventlog == NULL || !eventlog_enabled || !eventlog_detailed)
199 return NULL;
200 cson_value *bind_list = cson_value_new_array();
201 logger->bound_param_cson = bind_list;
202
203 cson_array *arr = cson_value_get_array(bind_list);
204
205 return arr;
206}
207
208static inline void eventlog_append_value(cson_array *arr, const char *name,
209 const char *type, cson_value *value)

Callers 1

bind_parametersFunction · 0.85

Calls 2

cson_value_new_arrayFunction · 0.85
cson_value_get_arrayFunction · 0.85

Tested by

no test coverage detected