Commit Graph

137 Commits (f39a3b9af9b437964fa7dc09e56a3bd1a4e0260b)

Author SHA1 Message Date
Tomáš Mládek 7adaecdafc re-enable synchronous mode more robustly through a drop guard 2021-12-05 23:31:19 +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 64cdbf08bc only process files in rescan, finally fix tests 2021-12-05 13:26:27 +01:00
Tomáš Mládek 365987f261 UpdatePathOutcome includes a "Failed" variant with path and error 2021-12-05 13:26:18 +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 636da63c76 disable browser/ui serving if folder not found 2021-12-04 22:43:37 +01:00
Tomáš Mládek 4233a5da46 improve fs rescan logging 2021-12-04 21:58:16 +01:00
Tomáš Mládek 4b1a8c862c turn off synchronous mode during fs resyncs 2021-12-04 21:43:13 +01:00
Tomáš Mládek 99c4a4e488 turn on WAL mode 2021-12-04 21:30:50 +01:00
Tomáš Mládek bc97b8bc8f move all inserts into a single transaction 2021-12-04 18:49:11 +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 6edf550a95 logging in hash 2021-12-04 16:45:16 +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 00cac1bca1 [db/ui] remove instantiations, use plain relations with aliases instead 2021-10-29 18:05:03 +02:00
Tomáš Mládek 30189b42a5 [db] fix clippy warnings 2021-10-29 15:49:53 +02:00
Tomáš Mládek 939297f91b [db] follow symlinks 2021-10-28 17:24:47 +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 d07c9fd339 [db] add --no-ui param 2021-10-19 22:23:46 +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
Tomáš Mládek 5953c733cf INSTANCED -> INSTANCES, sort of (also see #11) 2021-06-28 20:39:24 +02:00
Tomáš Mládek 942ccf1c40 mark failed jobs with a specific state, prevent from lingering in ui 2021-06-20 16:46:45 +02:00
Tomáš Mládek 682eca3e5a allow insertion of invariants via api 2021-06-20 14:07:15 +02:00
Tomáš Mládek 0beca214df forgotten DIR_HAS attr in FS_DIR 2021-06-19 17:59:54 +02:00
Tomáš Mládek 2a3c1a5326 add more attrs to BLOB type 2021-06-19 15:56:10 +02:00
Tomáš Mládek 86294ebf53 create macros for common (type) inserts 2021-06-19 15:54:32 +02:00
Tomáš Mládek 841dc7c07b mention data in base58 decode fail 2021-06-19 15:01:46 +02:00
Tomáš Mládek b78e38162e forgotten takes_value for --db-path 2021-06-19 13:11:27 +02:00
Tomáš Mládek 06d30433e5 allow specifying path to db on cli 2021-06-19 12:32:05 +02:00
Tomáš Mládek fa1e366e5b logging in query() 2021-06-18 19:01:05 +02:00
Tomáš Mládek 9c71eea8e1 return version info in /api/info 2021-06-18 18:28:18 +02:00
Tomáš Mládek 415450ccae add TYPE_INSTANCED, BLOB is INSTANCED by FS_FILE 2021-06-06 23:50:27 +02:00
Tomáš Mládek e0eb20aba7 add BLOB TYPE 2021-06-04 15:14:58 +02:00
Tomáš Mládek 4468262f50 fix bug adding duplicate Files
initialize digest in _process_directory_entry via once_cell
2021-05-28 23:36:00 +02:00
Tomáš Mládek 8044137531 add vault --name option, /api/info endpoint 2021-05-06 20:23:20 +02:00
Tomáš Mládek 7f358932f6 fix /latest endpoint 2021-05-06 20:10:40 +02:00