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

Function db_postgres_rename_column

db/db_postgres.c:276–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276static bool db_postgres_rename_column(struct db *db,
277 const char *tablename,
278 const char *from, const char *to)
279{
280 char *cmd;
281
282 cmd = tal_fmt(db, "ALTER TABLE %s RENAME %s TO %s;",
283 tablename, from, to);
284 db_exec_prepared_v2(take(db_prepare_untranslated(db, cmd)));
285 return true;
286}
287
288static bool db_postgres_delete_columns(struct db *db,
289 const char *tablename,

Callers

nothing calls this directly

Calls 2

db_exec_prepared_v2Function · 0.85
db_prepare_untranslatedFunction · 0.85

Tested by

no test coverage detected