diff options
Diffstat (limited to 'src/queries.h')
-rw-r--r-- | src/queries.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/queries.h b/src/queries.h index 7d5ec47..aaaa862 100644 --- a/src/queries.h +++ b/src/queries.h @@ -24,6 +24,7 @@ #define TBL_PROGRAM "PROGRAM" #define TBL_CONFIG "CONFIG" #define TBL_REL "REL" +#define TBL_CTX "CONTEXT" #define COL_PROGRAM_ID "ID" #define COL_PROGRAM_NAME "NAME" @@ -36,6 +37,11 @@ #define COL_REL_PROGRAM_ID "PID" #define COL_REL_CONFIG_ID "CID" +#define COL_CTX_KEY "KEY" +#define COL_CTX_VAL "VAL" + +#define KEY_CTX_SECRET "secret_enabled" + #define __BEGIN_TRANSACTION__ sqlite3_exec(db->ptr, "BEGIN TRANSACTION;", NULL, NULL, NULL); #define __END_TRANSACTION__ sqlite3_exec(db->ptr, "END TRANSACTION;", NULL, NULL, NULL); @@ -59,4 +65,6 @@ void dbh_form_query_select_from_joined_like(char *query, const char *selection, void dbh_form_query_delete_x_from_y(char *query, const char *x, const char *y); void dbh_form_query_count_program_relations(char *query); void dbh_form_query_get_pid_from_cid(char *query); +void dbh_form_query_secret_enabled(char *query); +void dbh_form_query_set_secret_enabled(char *query); #endif /* DBHELPER_H */ |