From a3c635bc459ea6e05c62868ddd0ef3a097ae05dc Mon Sep 17 00:00:00 2001 From: Louie S Date: Mon, 3 Jul 2023 11:18:47 -0700 Subject: Add comments --- src/db/sqlite3/db.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/db/sqlite3/db.c') diff --git a/src/db/sqlite3/db.c b/src/db/sqlite3/db.c index 36981d4..30e74a0 100644 --- a/src/db/sqlite3/db.c +++ b/src/db/sqlite3/db.c @@ -40,6 +40,7 @@ int create_tables(const char *path) { int res; int i; + // Group table - stores groups of entries sprintf(queries[0], "CREATE TABLE IF NOT EXISTS 'Group' (" "'ID' int NOT NULL PRIMARY KEY, " @@ -48,6 +49,7 @@ int create_tables(const char *path) { "'Url' varchar(%d) DEFAULT NULL);", BUF_LEN, BUF_LEN, BUF_LEN); + // Entry table - stores individual entries sprintf(queries[1], "CREATE TABLE IF NOT EXISTS 'Entry' (" "'ID' int NOT NULL PRIMARY KEY, " -- cgit