]> git.xolatile.top Git - soikk-DB.git/commitdiff
Updated example again
authorSoikk <76824648+Soikk@users.noreply.github.com>
Mon, 25 Jul 2022 18:07:22 +0000 (20:07 +0200)
committerSoikk <76824648+Soikk@users.noreply.github.com>
Mon, 25 Jul 2022 18:07:22 +0000 (20:07 +0200)
TODO
src/main.c

diff --git a/TODO b/TODO
index e9347763977cd19af81700829fad5562f9720f19..c0f473b42f09e699a199abe1b6a662af17251711 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,3 +1,7 @@
+TODO   Consider refactoring tables to B-Trees (better performance?)
+
+TODO   Add remove* functions, restructure tables functions
+
 TODO   Get rid of old functionalities (strnatcmp, BM)
 
 ----------------------------------------------------------------
index 0768188d516b92e81321633b7c11e9b2311046bc..71df5bfa257771f0326ef229856582015de6de9c 100644 (file)
@@ -9,7 +9,7 @@ int main(){
        
        
        addFileTag(db, "vaca.png", "naturaleza");       
-       addFileTags(db, "donald-tromp.jpg", 3, "based", "blonde", "very cool");
+       addFileTags(db, "terry-davis.jpg", 3, "holyC", "programmer", "very cool");
        addFileTag(db, "vaca.png", "lovely");
        addFileTags(db, "vaca.png", 3, "nature", "animal", "very cool");
        
@@ -20,9 +20,9 @@ int main(){
        debugDatabase(db);
        
        uint64_t *l, i;
-       searchFile(db, "donald-tromp.jpg", 0, &l, &i);
+       searchFile(db, "terry-davis.jpg", 0, &l, &i);
        
-       printf("Tags with tag 'donald-tromp.jpg':\n");
+       printf("Tags with file 'terry-davis.jpg':\n");
        for(uint64_t j = 0; j < i; ++j){
                printf("\t%s\n", db->ltags->table[l[j]]);