Compare commits
2 Commits
52b0c8f368
...
833c8f6d17
Author | SHA1 | Date | |
---|---|---|---|
833c8f6d17 | |||
37743ff684 |
@ -385,7 +385,7 @@ int parse_args(int argc, char** argv, filtered_tasks* task){
|
||||
}
|
||||
|
||||
if ( argc > 4 ){
|
||||
task->due_date = argv[3];
|
||||
task->due_date = argv[4];
|
||||
}
|
||||
|
||||
if ( argc > 5 ){
|
||||
|
16
src/dodo.h
16
src/dodo.h
@ -42,11 +42,17 @@ int view_all(sqlite3 *db);
|
||||
void init_filtered_tasks(filtered_tasks* task);
|
||||
|
||||
// sql generators TODO: might be able to boil this down to 1 func
|
||||
int gen_sql_update_stmt(sqlite3 *db, sqlite3_stmt** out_stmt, filtered_tasks* task);
|
||||
int gen_sql_update_stmt_v2(sqlite3 *db, sqlite3_stmt** out_stmt, filtered_tasks* task);
|
||||
int gen_sql_delete_stmt(sqlite3 *db, sqlite3_stmt** out_stmt, filtered_tasks* task);
|
||||
int gen_sql_insert_stmt(sqlite3 *db, sqlite3_stmt** out_stmt, filtered_tasks* task, char* values);
|
||||
int gen_sql_select_stmt(sqlite3 *db, sqlite3_stmt** out_stmt, filtered_tasks* task);
|
||||
int prepare_sql_update_stmt(sqlite3 *db, sqlite3_stmt** out_stmt, filtered_tasks* task);
|
||||
int prepare_sql_delete_stmt(sqlite3 *db, sqlite3_stmt** out_stmt, filtered_tasks* task);
|
||||
int prepare_sql_insert_stmt(sqlite3 *db, sqlite3_stmt** out_stmt, filtered_tasks* task, char* values);
|
||||
int prepare_sql_select_stmt(sqlite3 *db, sqlite3_stmt** out_stmt, filtered_tasks* task);
|
||||
|
||||
int bind_sql_update_stmt(filtered_tasks *task, int num_params, sqlite3_stmt* out_stmt);
|
||||
int bind_sql_delete_stmt(filtered_tasks *task, sqlite3_stmt* out_stmt);
|
||||
int bind_sql_insert_stmt(filtered_tasks *task, sqlite3_stmt* out_stmt);
|
||||
int bind_sql_select_stmt(filtered_tasks *task, sqlite3_stmt* out_stmt);
|
||||
|
||||
|
||||
|
||||
// helpers
|
||||
int checksqlerr(int rc, char *errmsg);
|
||||
|
Loading…
Reference in New Issue
Block a user