Browse Source

db: make db_exec() an internal function.

Every caller is using prepared statements now.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 8 years ago
committed by Christian Decker
parent
commit
9fd81ab06d
  1. 2
      wallet/db.c
  2. 6
      wallet/db.h

2
wallet/db.c

@ -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;

6
wallet/db.h

@ -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
*

Loading…
Cancel
Save