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

Function db_last_insert_id_v2

db/utils.c:217–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217u64 db_last_insert_id_v2(struct db_stmt *stmt TAKES)
218{
219 u64 id;
220 assert(stmt->executed);
221 id = stmt->db->config->last_insert_id_fn(stmt);
222
223 tal_free_if_taken(stmt);
224
225 return id;
226}
227
228/* We expect min changes (ie. BEGIN TRANSACTION): report if more.
229 * Optionally add "final" at the end (ie. COMMIT). */

Callers 5

move_accounts_idFunction · 0.85
wallet_shachain_initFunction · 0.85
wallet_peer_saveFunction · 0.85

Calls 1

tal_free_if_takenFunction · 0.85

Tested by

no test coverage detected