From fc7f3ae8e39a0398ceba7b9c44f58679c01a98da Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 16 Dec 2025 04:30:42 +0100 Subject: tables --- database/src/indices/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'database/src/indices/mod.rs') 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 */ -use crate::backends::KV; +use crate::{backends::KV, table::RowNum}; use anyhow::Result; pub mod order; pub trait Index { - 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 -- cgit v1.3