add changes to sqlite_ex and some new files

This commit is contained in:
2025-02-27 21:56:12 +02:00
parent 37f9a3d138
commit 547e562f69
6 changed files with 159 additions and 7 deletions

View File

@ -11,6 +11,8 @@
#define SELECT_ALL_TABLES "select * from sqlite_schema where type = 'table';"
#define SELECT_TWNTH_DAY "select * from twnth_day;"
#define SELECT_CURRENT_COSTS "select * from costs where id = ?;"
#define INSERT_MEASUREMENT "insert into measurements (gas, water, electricity, costs) values (?, ?, ?, 1);"
#define CALCULATION_FORMAT "%s: %d - %d = %f * %f = %f\n"
#define STR_SIZE 11
typedef struct tm Datetime;