X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2F_infotojson%2Fdatabase.h;h=f807cbde269b7cc7e3cc9af40222d1b09228d92d;hp=7081df43e9981a7bc0aebcea97c5d37dbbd5a0f0;hb=338b91f5d9f391a29f43568872e4406438ff2af8;hpb=f51dd128c16fd6c654bdfbdcb19204bf9a867fe5 diff --git a/tools/_infotojson/database.h b/tools/_infotojson/database.h index 7081df43..f807cbde 100644 --- a/tools/_infotojson/database.h +++ b/tools/_infotojson/database.h @@ -1,6 +1,4 @@ /* Simple SQL-style database ops. Currently implemented for sqlite3. */ -//#ifndef _UPLOAD_ANALYSIS_DATABASE_H -//#define _UPLOAD_ANALYSIS_DATABASE_H #include /* Returns handle to the database.. */ @@ -18,13 +16,5 @@ struct db_query *db_query(void *h, const char *query); /* Runs command (CREATE TABLE/INSERT) */ void db_command(void *h, const char *command); -/* Starts transaction. Doesn't need to nest. */ -//void db_transaction_start(void *h); - -/* Finishes transaction, or rolls it back and caller needs to start again. */ -//bool db_transaction_finish(void *h); - /* Closes database (only called when everything OK). */ void db_close(void *h); - -//#endif /* _UPLOAD_ANALYSIS_DATABASE_H */