/* This file is part of jellything (https://codeberg.org/metamuffin/jellything) which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2026 metamuffin */ use crate::{backends::WriteTransaction, table::RowNum}; use anyhow::Result; pub mod order; pub mod key; pub trait Index { fn add(&self, db: &mut dyn WriteTransaction, row: RowNum, val: &T) -> Result<()>; fn remove(&self, db: &mut dyn WriteTransaction, row: RowNum, val: &T) -> Result<()>; fn compare(&self, before: &T, after: &T) -> bool { let _ = (before, after); true } }