summaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2023-07-03 11:30:38 -0700
committerLouie S <louie@example.com>2023-07-03 11:30:38 -0700
commitded510aedc6d1df4b34e1cca07847098fd94198b (patch)
treed0f089e68e94cccca9cd3e1bf23e274505f710c1 /src/db
parenta3c635bc459ea6e05c62868ddd0ef3a097ae05dc (diff)
Add id to structs
Diffstat (limited to 'src/db')
-rw-r--r--src/db/sqlite3/db.c8
-rw-r--r--src/db/sqlite3/db.h8
2 files changed, 16 insertions, 0 deletions
diff --git a/src/db/sqlite3/db.c b/src/db/sqlite3/db.c
index 30e74a0..aa8485b 100644
--- a/src/db/sqlite3/db.c
+++ b/src/db/sqlite3/db.c
@@ -32,6 +32,14 @@ int db_init() {
return 0;
}
+Group *db_load_groups() {
+ // TODO
+}
+
+Entry *db_load_entries() {
+ // TODO
+}
+
int create_tables(const char *path) {
sqlite3 *db;
char queries[2][BUF_LEN];
diff --git a/src/db/sqlite3/db.h b/src/db/sqlite3/db.h
index c6279f9..44f61b7 100644
--- a/src/db/sqlite3/db.h
+++ b/src/db/sqlite3/db.h
@@ -7,6 +7,14 @@
* 1 -> failure: could not create directory
* 2 -> failure: could not create file
*/
+
+#include "entry.h"
+#include "group.h"
+
int db_init();
+Group *db_load_groups();
+
+Entry *db_load_entries();
+
#endif