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

Function db_postgres_rename_column

db/db_postgres.c:274–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274static bool db_postgres_rename_column(struct db *db,
275 const char *tablename,
276 const char *from, const char *to)
277{
278 char *cmd;
279
280 cmd = tal_fmt(db, "ALTER TABLE %s RENAME %s TO %s;",
281 tablename, from, to);
282 db_exec_prepared_v2(take(db_prepare_untranslated(db, cmd)));
283 return true;
284}
285
286static bool db_postgres_delete_columns(struct db *db,
287 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