mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
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:
committed by
Christian Decker
parent
4fb472b7a7
commit
9fd81ab06d
@@ -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;
|
||||
|
||||
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user