This commit is contained in:
Yuriy Dupyn 2024-02-03 19:32:50 +01:00
parent 2261fe39de
commit 3bf04ae2d6
7 changed files with 194 additions and 215 deletions

View file

@ -1,5 +1,5 @@
use tokio::io::{AsyncReadExt, AsyncWriteExt, AsyncSeekExt, SeekFrom};
use tokio::fs::{File, OpenOptions, DirBuilder};
use tokio::fs::{File, OpenOptions};
use std::path::Path;
use std::marker::PhantomData;
@ -7,11 +7,12 @@ use async_trait::async_trait;
use bincode;
use bincode::{Decode, Encode};
use crate::binary_coding::{encode, decode, encode_sequence, encode_sequence_with_sizes, decode_sequence};
use tokio::fs;
use crate::binary_coding::encode;
use crate::error::{Error, DecodeErrorKind};
use crate::storage_engine::{Store, StoreHeader, FilePosition, Result, ROWS_FILE_NAME, EntryDetailed, EntryHeaderWithDataSize, Entry};
use crate::entry::{Entry, EntryDetailed};
use crate::entry_header::EntryHeaderWithDataSize;
use crate::store_header::StoreHeader;
use crate::storage_engine::{Store, FilePosition, Result, ROWS_FILE_NAME};
#[async_trait]
trait PrimitiveCursor<T> {