diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-01-24 04:31:48 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-01-24 04:31:48 +0100 |
| commit | b2e88a8beabf04adc28947cf82996e8692a68b71 (patch) | |
| tree | 23d66c8672b69cce7835ffabae4092669062ada8 /database/src/table.rs | |
| parent | 774f64c0789529884dd7a5232f190e347ad29532 (diff) | |
| download | jellything-b2e88a8beabf04adc28947cf82996e8692a68b71.tar jellything-b2e88a8beabf04adc28947cf82996e8692a68b71.tar.bz2 jellything-b2e88a8beabf04adc28947cf82996e8692a68b71.tar.zst | |
move things around; kv crate
Diffstat (limited to 'database/src/table.rs')
| -rw-r--r-- | database/src/table.rs | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/database/src/table.rs b/database/src/table.rs index 4535b4c..c3b4342 100644 --- a/database/src/table.rs +++ b/database/src/table.rs @@ -4,12 +4,9 @@ Copyright (C) 2026 metamuffin <metamuffin.org> */ -use crate::{ - backends::{ReadTransaction, WriteTransaction}, - query::Query, - sort::Index, -}; +use crate::{query::Query, sort::Index}; use anyhow::{Result, anyhow}; +use jellykv::{ReadTransaction, WriteTransaction}; use jellyobject::ObjectBuffer; pub type TableNum = u64; @@ -107,15 +104,15 @@ impl Table { #[cfg(test)] mod test { use crate::{ - backends::{Database, new_memory}, table::Table, test_shared::{NAME, new_bob}, }; use anyhow::Result; + use jellykv::Database; #[test] pub fn insert_get() -> Result<()> { - let db = new_memory(); + let db = jellykv_memory::new(); let table = Table::new(5); let mut bob_row = 0; @@ -136,7 +133,7 @@ mod test { #[test] pub fn update() -> Result<()> { - let db = new_memory(); + let db = jellykv_memory::new(); let table = Table::new(5); let mut bob_row = 0; |