summaryrefslogtreecommitdiff
path: root/src/db/sqlite3/db.c
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2023-07-03 11:18:47 -0700
committerLouie S <louie@example.com>2023-07-03 11:18:47 -0700
commita3c635bc459ea6e05c62868ddd0ef3a097ae05dc (patch)
tree21e4004e6a0d19bd4f5a7b1275c50ce5c2d3952d /src/db/sqlite3/db.c
parent795301860f3a2a36e66396f2c57552f16d5c170b (diff)
Add comments
Diffstat (limited to 'src/db/sqlite3/db.c')
-rw-r--r--src/db/sqlite3/db.c2
1 files changed, 2 insertions, 0 deletions
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, "