Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
cc06c73
fix: dissociate IndexScan lifetime from its generic Index type
amimart May 27, 2026
d1c37d8
refactor: simplify index remove
amimart May 27, 2026
91711a9
refactor: rename fn set into remove for indexes
amimart May 27, 2026
027e043
feat: update indexes on insert
amimart May 27, 2026
eb9e246
feat: use borrowed values in collection api
amimart May 28, 2026
e96cf99
feat: impl collection::get
amimart May 28, 2026
596d81f
feat: impl collection::remove()
amimart May 28, 2026
1ab0d10
refactor: simplify collection::get
amimart May 28, 2026
6599c65
docs: typo in redame
amimart Jun 1, 2026
489f644
refactor: add granularity to index lifetimes
amimart Jun 1, 2026
85dde52
feat: impl collection::update
amimart Jun 1, 2026
671abbb
test: refactor idx registry tests
amimart Jun 1, 2026
770f58d
refactor: contaminate idx scan with lifetimes
amimart Jun 1, 2026
a059526
style: hug linters
amimart Jun 1, 2026
6fbe41d
feat: force Key to be Debug
amimart Jun 1, 2026
1cff2ca
fix: properly give fmted keys in errors
amimart Jun 1, 2026
d0fd37e
fix: err when updating unexisting record
amimart Jun 1, 2026
db50bac
feat: impl collection::save
amimart Jun 1, 2026
83865a9
docs: complete readme
amimart Jun 1, 2026
017fb86
refactor: rename col::index to col::scan
amimart Jun 1, 2026
ea7bf38
docs: document collection API
amimart Jun 1, 2026
36db5b1
test: introduce mocked store for testing purposes
amimart Jun 1, 2026
1c5df75
feat: add internal helpers for errors
amimart Jun 1, 2026
8d7e83f
test(collection): add test cases for insert
amimart Jun 1, 2026
bf41351
test: collection::update
amimart Jun 1, 2026
df1af72
test: simplify with a mocked index registry
amimart Jun 1, 2026
51e3544
test: collection::save
amimart Jun 1, 2026
981fa49
test: collection::remove
amimart Jun 1, 2026
2696c40
test: collection::get
amimart Jun 1, 2026
fcea3d1
style: some lookmaxxing
amimart Jun 1, 2026
1a1ecd9
style: make linters happy
amimart Jun 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ let downloads = collection::<Download, DB>("downloads", DB {})
.with_index::<UniqueName>()
.with_index::<ByStatus>()
.with_index::<ByStatusAndSize>()
build();
.build();

downloads.save(dl)?;
let my_dl = downloads.get(&dl.info_hash)?;
Expand All @@ -64,10 +64,10 @@ pub struct Download {
size: u64,
}

#[derive(Clone, Copy, Eq, PartialEq)]
#[derive(Clone, Copy, Eq, PartialEq, Debug)]
pub struct InfoHash([u8; 20]);

#[derive(Clone, Copy, Eq, PartialEq)]
#[derive(Clone, Copy, Eq, PartialEq, Debug)]
pub enum Status {
Queued,
Submitted,
Expand Down
Loading