MCPcopy Create free account
hub / github.com/ElementsProject/lightning / find_fieldtype

Function find_fieldtype

plugins/sql.c:238–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236};
237
238static enum fieldtype find_fieldtype(const jsmntok_t *name)
239{
240 for (size_t i = 0; i < ARRAY_SIZE(fieldtypemap); i++) {
241 if (json_tok_streq(schemas, name, fieldtypemap[i].name))
242 return i;
243 }
244 errx(1, "Unknown JSON type %.*s",
245 name->end - name->start, schemas + name->start);
246}
247
248static struct sqlite3 *sqlite_setup(struct plugin *plugin)
249{

Callers 2

add_table_singletonFunction · 0.85
add_table_propertiesFunction · 0.85

Calls 2

json_tok_streqFunction · 0.85
errxFunction · 0.85

Tested by

no test coverage detected