db: make db_exec() an internal function.

Every caller is using prepared statements now.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2017-11-01 11:51:57 +10:30
committed by Christian Decker
parent 4fb472b7a7
commit 9fd81ab06d
2 changed files with 1 additions and 7 deletions

View File

@@ -161,7 +161,7 @@ static void db_do_exec(const char *caller, struct db *db, const char *cmd)
}
}
void PRINTF_FMT(3, 4)
static void PRINTF_FMT(3, 4)
db_exec(const char *caller, struct db *db, const char *fmt, ...)
{
va_list ap;

View File

@@ -38,12 +38,6 @@ struct db *db_setup(const tal_t *ctx);
sqlite3_stmt *PRINTF_FMT(3, 4)
db_query(const char *caller, struct db *db, const char *fmt, ...);
/**
* db_exec - execute a statement, call fatal() if it fails.
*/
void PRINTF_FMT(3, 4)
db_exec(const char *caller, struct db *db, const char *fmt, ...);
/**
* db_begin_transaction - Begin a transaction
*