From 22fca0324c162fa9a6abc5192aea2b5453c057b5 Mon Sep 17 00:00:00 2001 From: Anastasis Grammenos Date: Wed, 19 Sep 2018 23:59:37 +0300 Subject: Add list action (no docs) --- src/dbhelper.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/dbhelper.c') 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); +} -- cgit v1.2.3