diff options
| author | metamuffin <metamuffin@disroot.org> | 2025-12-16 04:30:42 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2025-12-16 04:30:42 +0100 |
| commit | fc7f3ae8e39a0398ceba7b9c44f58679c01a98da (patch) | |
| tree | 77eef4d5e5ccb733b15ac4039e0a966f88ee8380 /database/src/indices/mod.rs | |
| parent | 0e48299889c3c2b81bf351ffe5da71e0bcd4c22a (diff) | |
| download | jellything-fc7f3ae8e39a0398ceba7b9c44f58679c01a98da.tar jellything-fc7f3ae8e39a0398ceba7b9c44f58679c01a98da.tar.bz2 jellything-fc7f3ae8e39a0398ceba7b9c44f58679c01a98da.tar.zst | |
tables
Diffstat (limited to 'database/src/indices/mod.rs')
| -rw-r--r-- | database/src/indices/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/database/src/indices/mod.rs b/database/src/indices/mod.rs index 48e91a9..5856254 100644 --- a/database/src/indices/mod.rs +++ b/database/src/indices/mod.rs @@ -4,14 +4,14 @@ Copyright (C) 2025 metamuffin <metamuffin.org> */ -use crate::backends::KV; +use crate::{backends::KV, table::RowNum}; use anyhow::Result; pub mod order; pub trait Index<T> { - fn add(&self, db: &dyn KV, id: u64, val: &T) -> Result<()>; - fn remove(&self, db: &dyn KV, id: u64, val: &T) -> Result<()>; + fn add(&self, db: &dyn KV, row: RowNum, val: &T) -> Result<()>; + fn remove(&self, db: &dyn KV, row: RowNum, val: &T) -> Result<()>; fn compare(&self, before: &T, after: &T) -> bool { let _ = (before, after); true |