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

Function db_last_insert_id_v2

db/utils.c:202–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202u64 db_last_insert_id_v2(struct db_stmt *stmt TAKES)
203{
204 u64 id;
205 assert(stmt->executed);
206 id = stmt->db->config->last_insert_id_fn(stmt);
207
208 if (taken(stmt))
209 tal_free(stmt);
210
211 return id;
212}
213
214/* We expect min changes (ie. BEGIN TRANSACTION): report if more.
215 * Optionally add "final" at the end (ie. COMMIT). */

Callers 10

wallet_shachain_initFunction · 0.85
wallet_peer_saveFunction · 0.85
wallet_htlc_save_inFunction · 0.85
wallet_htlc_save_outFunction · 0.85
wallet_payment_storeFunction · 0.85
invoices_createFunction · 0.85
account_addFunction · 0.85
log_channel_eventFunction · 0.85
log_chain_eventFunction · 0.85

Calls 2

takenFunction · 0.85
tal_freeFunction · 0.85

Tested by

no test coverage detected