diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2018-08-18 18:44:14 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2018-08-18 18:44:14 +0300 |
commit | 0f33c8a9cbabda257c4dd73009266a4cf5f857a7 (patch) | |
tree | 1b0ca0c9a3d06b6ccd32c456f8fe8d84cb153093 /src/dbhelper.c | |
parent | ffc33043a488ecf038d8414fc8af1e99389619f8 (diff) | |
download | ck-0f33c8a9cbabda257c4dd73009266a4cf5f857a7.tar.gz ck-0f33c8a9cbabda257c4dd73009266a4cf5f857a7.tar.bz2 ck-0f33c8a9cbabda257c4dd73009266a4cf5f857a7.zip |
steps towards list
Diffstat (limited to 'src/dbhelper.c')
-rw-r--r-- | src/dbhelper.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/dbhelper.c b/src/dbhelper.c index b6421db..b27e81a 100644 --- a/src/dbhelper.c +++ b/src/dbhelper.c @@ -169,3 +169,13 @@ void dbh_format_query_select_from_joined_like(char *query, const char *selection strcpy(query, tmp); } + +void dbh_form_query_select_paths(char *query) { + char tmp[STR_L] = "SELECT "; + strcat(tmp, COL_CONFIG_PATH); + strcat(tmp, " FROM "); + strcat(tmp, TBL_CONFIG); + strcat(tmp, ";"); + + strcpy(query, tmp); +} |