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

Function db_migrate

plugins/bkpr/test/run-recorder.c:229–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227#define db_commit_transaction(db)
228
229static bool db_migrate(struct plugin *p, sqlite3 *db)
230{
231 sqlite3_stmt *s;
232 for (size_t i = 0; i < ARRAY_SIZE(db_migrations); i++) {
233 int rc;
234 sqlite3_prepare_v2(db, db_migrations[i].sql, -1, &s, NULL);
235 rc = sqlite3_step(s);
236 assert(rc == SQLITE_DONE);
237 sqlite3_finalize(s);
238 }
239 return true;
240}
241
242static sqlite3 *db_setup(struct plugin *p, const char *db_dsn)
243{

Callers 1

db_setupFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected