place sql statements in sep header
This commit is contained in:
parent
c0d27e49ce
commit
e2418462ba
16
include/stmt.h
Normal file
16
include/stmt.h
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
static sqlite3_stmt* remind_stmt;
|
||||||
|
static const char remind_stmt_template[] =
|
||||||
|
"SELECT "
|
||||||
|
"title,"
|
||||||
|
"body,"
|
||||||
|
"difficulty,"
|
||||||
|
"repo_link,"
|
||||||
|
"trigger_date,"
|
||||||
|
"started DATE,"
|
||||||
|
"span"
|
||||||
|
" FROM assignment INNER JOIN project on assignment.project = project.rowid "
|
||||||
|
"WHERE who = ?;"
|
||||||
|
;
|
||||||
|
|
||||||
|
#define stmt_prepare(stmt) \
|
||||||
|
sqlite3_prepare_v2(connection, stmt ## _template, -1, &stmt, NULL)
|
Reference in New Issue
Block a user