Commit Graph

48 Commits (813f21b21eb70414cf0b78b6bf6ed186d2cc6e31)

Author SHA1 Message Date
Tomáš Mládek ddfe103e7a
add LBLs to base types 2022-01-27 17:42:59 +01:00
Tomáš Mládek fa957794e5
encode/decode -> b58_encode/decode 2022-01-26 16:55:23 +01:00
Tomáš Mládek dd16a96125
canonicalize paths before normalization, fix symlink bug 2022-01-23 14:51:54 +01:00
Tomáš Mládek 893a87a094
unify adding files via rescans and ui 2022-01-23 14:50:37 +01:00
Tomáš Mládek ef59090859
separate adding file into its own fn, refactor private fn names 2022-01-23 13:03:27 +01:00
Tomáš Mládek a4caf9b8b3
fix insert_entry retval 2022-01-22 17:45:46 +01:00
Tomáš Mládek 0920fec0ce add immutable entries for size, etc (does nothing for now) 2022-01-21 17:59:53 +01:00
Tomáš Mládek ecaea693c6 reformat (?) 2022-01-21 17:03:50 +01:00
Tomáš Mládek a2b9ec4c75
move "?" out of upend macros 2022-01-18 16:59:32 +01:00
Tomáš Mládek 338be4be10
/raw/ queries of entries 2022-01-14 22:04:53 +01:00
Tomáš Mládek 2f6a265af8
alike value queries do not include addresses 2022-01-13 20:31:50 +01:00
Tomáš Mládek 091a02d530
add endpoint to list all attributes 2022-01-06 23:23:35 +01:00
Tomáš Mládek d11d20f210
fix tests due to tempdir -> tempfile change 2021-12-27 12:36:38 +01:00
Tomáš Mládek a608659baa
thumbnails module, "text thumbnails" on backend 2021-12-23 23:45:46 +01:00
Tomáš Mládek 0f3dd88193
clippy fixes, no default feature compile fix 2021-12-23 11:18:04 +01:00
Tomáš Mládek 0058a9fcdd
test db open newness 2021-12-23 11:11:36 +01:00
Tomáš Mládek ce9e552844
rewrite database module as a struct instead of bare fns 2021-12-23 11:10:16 +01:00
Tomáš Mládek 2ccfce6058
remove some file-centric language 2021-12-21 23:16:10 +01:00
Tomáš Mládek 7d0b23e955
impl fromstr for query 2021-12-21 12:01:40 +01:00
Tomáš Mládek 8e71e34a09
add not queries into uplang
somewhat awkwardly implemented as multiqueries, but hey
2021-12-21 11:50:46 +01:00
Tomáš Mládek 2d1a3b9ba7
better test of list_roots 2021-12-21 11:26:20 +01:00
Tomáš Mládek ffedb89e03 todo 2021-12-18 00:14:47 +01:00
Tomáš Mládek e0a603d154 remove list_hier, retrieve_object retrieves attrs of attrs, rework /api/hier 2021-12-17 23:04:35 +01:00
Tomáš Mládek 1194a4439e list_path also fetches attrs of attrs 2021-12-17 19:44:00 +01:00
Tomáš Mládek a33943bdb7 handle root /hier/ query 2021-12-17 14:15:56 +01:00
Tomáš Mládek b49315e22b update mtime if same hash to avoid hashing next time 2021-12-05 22:57:47 +01:00
Tomáš Mládek cb832b6789 lock concurrent fetch_or_creates to prevent inconsistencies 2021-12-05 22:36:16 +01:00
Tomáš Mládek dacfc57d11 truncate WAL log on start 2021-12-05 20:30:31 +01:00
Tomáš Mládek cec3c4891e set synchronous to NORMAL for all connections 2021-12-05 19:06:04 +01:00
Tomáš Mládek b5a013e973 put upend into its own subdir, fix self-scanning 2021-12-05 12:43:43 +01:00
Tomáš Mládek 10eaab6e2d logging, fix "database locked" errors on init 2021-12-05 12:23:02 +01:00
Tomáš Mládek c8b8a76bba logging 2021-12-05 12:10:41 +01:00
Tomáš Mládek 99c4a4e488 turn on WAL mode 2021-12-04 21:30:50 +01:00
Tomáš Mládek dd765ee94b add lru cache to resolve_path fn 2021-12-04 18:33:40 +01:00
Tomáš Mládek 4403f518c9 cargo clippy fixes 2021-12-04 16:46:13 +01:00
Tomáš Mládek 2448169d64 small optimizations in fs import 2021-12-04 16:45:06 +01:00
Tomáš Mládek 5b973ea868 add hierarchy manipulation tests 2021-12-02 22:18:43 +01:00
Tomáš Mládek da776bbcf3 return to old (orphanized) multi-root hierarchy 2021-12-02 21:52:43 +01:00
Tomáš Mládek 1df746596f clean up db type code to better match actual usage 2021-12-02 21:30:11 +01:00
Tomáš Mládek 30189b42a5 [db] fix clippy warnings 2021-10-29 15:49:53 +02:00
Tomáš Mládek eec053a58a [db] add basic tests for fs, hierarchies, database 2021-10-24 17:26:39 +02:00
Tomáš Mládek 96d0ec3be7 introduce the concept of a hierarchy root 2021-08-18 11:06:39 +02:00
Tomáš Mládek 2944ce3d81 fix missing hier_label_attr, add trace to list_hier 2021-08-18 11:06:38 +02:00
Tomáš Mládek fbee24978b ensure UNode is non-empty 2021-08-18 11:06:37 +02:00
Tomáš Mládek 816f04fc86 upend hierarchies - first step
separate hierarchies.rs module from filesystem.rs, simplify and fix path handling
2021-08-18 11:06:36 +02:00
Tomáš Mládek 0b45f29319 macros into their own file, fix imports 2021-07-26 23:10:12 +02:00
Tomáš Mládek 2b6886645b more cleanup and refactoring and moving
move models.rs and schema.rs into database::inner
create util module (with hash and jobs)
2021-07-26 21:14:51 +02:00
Tomáš Mládek 754c315cd2 refactor database.rs into separate files 2021-07-26 21:00:05 +02:00