Commit graph

147 commits

Author SHA1 Message Date
cbd67821fc nix: use cargo manifest 2025-01-12 14:18:21 -08:00
65565a4205 nix: override rustPlatform instead of using makeRustPlatform 2025-01-12 14:18:21 -08:00
5cafe9d92b nix: package dist 2024-12-27 05:26:54 -08:00
53b1f4f244 feat: smarter paths 2024-12-27 04:49:09 -08:00
6b96aa49b9 change: use /var/lib/nyazoom by default 2024-12-27 03:05:30 -08:00
85bd1a3e6c refactor: unify cache directory 2024-12-27 03:05:12 -08:00
d0f98c5d04 flake: platforms override 2024-12-27 02:02:41 -08:00
09d7bd25b1 flake: meta 2024-12-27 01:50:35 -08:00
ea833b39ec flake: nix packaged! 2024-12-26 23:33:24 -08:00
ee8aa55849 flake: migrate to flake-parts 2024-12-26 22:39:00 -08:00
7825f38e7a fixup! feat: deny non hx-requests on fragment 2024-11-21 16:50:19 -08:00
122643c630 feat: use data file as db in .cache 2024-11-21 16:47:05 -08:00
1ccaab9578 chore: cleanup unused imports
I commented the thing that uses this out
2024-11-21 16:40:05 -08:00
91cbca6b15 feat: cache names no longer include .zip 2024-11-21 16:39:23 -08:00
814aaad260 fixup! feat: begone memory map 2024-11-21 16:25:29 -08:00
1dc9f4c877 chore: update .sqlx 2024-11-21 16:17:05 -08:00
5f4158e27d feat: begone memory map 2024-11-21 16:15:33 -08:00
87f68efd61 feat: typed get queries 2024-11-21 16:00:19 -08:00
a817502793 feat: delete no longer touches records 2024-11-21 15:30:08 -08:00
72210b211e chore: update .sqlx 2024-11-21 14:33:41 -08:00
07273fad14 feat: db downloads 2024-11-21 14:08:51 -08:00
ec6b1b6477 add cache cleaning queries 2024-11-21 11:06:41 -08:00
923103c5ef add query and data types in prep for bulk record json response 2024-11-21 10:19:16 -08:00
29936813f0 refactor: downloads remaining block in link.html 2024-11-21 10:08:07 -08:00
31e2cab280 feat: deny non hx-requests on fragment 2024-11-21 10:01:32 -08:00
1da83c0016 change: refetch remaining once a minute 2024-11-21 09:34:22 -08:00
10cf09ee76 refactor: extract service variable 2024-11-21 07:54:03 -08:00
c3334d41f9 chore: update sqlx prepare 2024-11-21 07:38:34 -08:00
51b5b5cd3b feat: db backed record removal 2024-11-21 07:07:15 -08:00
7db8ac69c9 refactor: remove code duplication 2024-11-21 06:58:06 -08:00
54280087dc feat: use db in LinkList 2024-11-21 06:45:08 -08:00
84c3513987 dev: sqlfluff ignore comment line length 2024-11-20 23:46:06 -08:00
fc625b50d7 dev: ignore special chars sqlfluff rule
inferred type columns with sqlx require aliases containing spaces and
special characters

See:
https://docs.rs/sqlx/latest/sqlx/macro.query_as.html#column-type-override-infer-from-struct-field
2024-11-20 23:43:33 -08:00
805723f10d add db structs 2024-11-20 23:34:22 -08:00
66a59df6ab temp: get and update 2024-11-20 08:06:08 -08:00
88e1cd98f2 feat: use rinja instead of axum 2024-11-20 07:30:16 -08:00
4f6c7422f5 feat: sqlx offline mode 2024-11-20 06:01:33 -08:00
83c31d679d feat: get_record query 2024-11-20 01:09:16 -08:00
b70d988c9d fix: semicolon on increment downloads query 2024-11-19 20:42:48 -08:00
1e3e53aa6d refactor: rename new.sql to new_record.sql 2024-11-19 20:41:53 -08:00
e44d80ee4c feat: increment on cache_name 2024-11-16 05:47:02 -08:00
5d577df56a feat: upload sql error "handling" and reorder 2024-11-16 05:47:02 -08:00
99adbd4ea4 breaking: cache_name on records table 2024-11-16 05:47:02 -08:00
5a000e6b42 feat: upload creates db record 2024-11-16 05:47:02 -08:00
47bc1b6016 dev: ignore sqlite wal related files 2024-11-15 23:34:44 -08:00
856369e370 feat: connection pool in AppState 2024-11-15 22:57:24 -08:00
d55a906dde feat: count_records query 2024-11-15 22:52:55 -08:00
5c662ba716 breaking: uploaded defaults to datetime('now')
sneaky not null id
2024-11-15 22:39:30 -08:00
7338b3c31f feat: increment_download query 2024-11-15 22:39:30 -08:00
a3112d96ae feat: new record query 2024-11-15 22:39:30 -08:00