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

Function db_sqlite3_close

db/db_sqlite3.c:400–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400static void db_sqlite3_close(struct db *db)
401{
402 struct db_sqlite3 *wrapper = (struct db_sqlite3 *) db->conn;
403
404 if (wrapper->backup_conn)
405 sqlite3_close(wrapper->backup_conn);
406 sqlite3_close(wrapper->conn);
407
408 db->conn = tal_free(db->conn);
409}
410
411static u64 db_sqlite3_last_insert_id(struct db_stmt *stmt)
412{

Callers

nothing calls this directly

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected