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

Function db_postgres_exec

db/db_postgres.c:223–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223static bool db_postgres_exec(struct db_stmt *stmt)
224{
225 bool ok;
226 stmt->inner_stmt = db_postgres_do_exec(stmt);
227 ok = PQresultStatus(stmt->inner_stmt) == PGRES_COMMAND_OK;
228
229 if (!ok)
230 stmt->error = PQerrorMessage(stmt->db->conn);
231
232 return ok;
233}
234
235static u64 db_postgres_last_insert_id(struct db_stmt *stmt)
236{

Callers

nothing calls this directly

Calls 1

db_postgres_do_execFunction · 0.85

Tested by

no test coverage detected