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

Function db_query_prepared_canfail

db/utils.c:139–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139bool db_query_prepared_canfail(struct db_stmt *stmt)
140{
141 /* Make sure we don't accidentally execute a modifying query using a
142 * read-only path. */
143 bool ret;
144 assert(stmt->query->readonly);
145 trace_span_start("db_query_prepared", stmt);
146 trace_span_tag(stmt, "query", stmt->query->query);
147 ret = stmt->db->config->query_fn(stmt);
148 stmt->executed = true;
149 list_del_from(&stmt->db->pending_statements, &stmt->list);
150 trace_span_end(stmt);
151 return ret;
152}
153
154void db_query_prepared(struct db_stmt *stmt)
155{

Callers 5

test_manip_columnsFunction · 0.85
db_query_preparedFunction · 0.85
db_get_versionFunction · 0.85
db_data_version_getFunction · 0.85
db_get_intvarFunction · 0.85

Calls 3

trace_span_tagFunction · 0.85
list_del_fromFunction · 0.85
trace_span_endFunction · 0.85

Tested by 1

test_manip_columnsFunction · 0.68