aboutsummaryrefslogtreecommitdiffstats
path: root/src/dbhelper.c
diff options
context:
space:
mode:
authorAnastasis Grammenos <anastasis.gramm2@gmail.com>2018-09-19 23:59:37 +0300
committerAnastasis Grammenos <anastasis.gramm2@gmail.com>2018-09-19 23:59:37 +0300
commit22fca0324c162fa9a6abc5192aea2b5453c057b5 (patch)
treeb799fde22ee67221e69f8cf3c5445c0373a7cfca /src/dbhelper.c
parent8702ce8bbd4d1435cc81fa8fcd7f5309d3c7b003 (diff)
downloadck-22fca0324c162fa9a6abc5192aea2b5453c057b5.tar.gz
ck-22fca0324c162fa9a6abc5192aea2b5453c057b5.tar.bz2
ck-22fca0324c162fa9a6abc5192aea2b5453c057b5.zip
Add list action (no docs)
Diffstat (limited to 'src/dbhelper.c')
-rw-r--r--src/dbhelper.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/dbhelper.c b/src/dbhelper.c
index b27e81a..d0c2795 100644
--- a/src/dbhelper.c
+++ b/src/dbhelper.c
@@ -179,3 +179,13 @@ void dbh_form_query_select_paths(char *query) {
strcpy(query, tmp);
}
+
+void dbh_form_query_select_programs(char *query) {
+ char tmp[STR_L] = "SELECT ";
+ strcat(tmp, COL_PROGRAM_NAME);
+ strcat(tmp, " FROM ");
+ strcat(tmp, TBL_PROGRAM);
+ strcat(tmp, ";");
+
+ strcpy(query, tmp);
+}