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

Function db_sqlite3_commit_tx

db/db_sqlite3.c:334–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334static bool db_sqlite3_commit_tx(struct db *db)
335{
336 int err;
337 char *errmsg;
338
339 struct db_sqlite3 *wrapper = (struct db_sqlite3 *) db->conn;
340
341 err = sqlite3_exec(conn2sql(db->conn),
342 "COMMIT;", NULL, NULL, &errmsg);
343 if (err != SQLITE_OK) {
344 db->error = tal_fmt(db, "Failed to commit a transaction: %s", errmsg);
345 return false;
346 }
347 replicate_statement(db, wrapper, "COMMIT;");
348 return true;
349}
350
351static bool db_sqlite3_column_is_null(struct db_stmt *stmt, int col)
352{

Callers

nothing calls this directly

Calls 2

conn2sqlFunction · 0.85
replicate_statementFunction · 0.85

Tested by

no test coverage detected