pub struct UncompressedStorage;Expand description
Uncompressed storage handler for transaction files
Stores transactions as plain .sql files with no compression.
Simple and efficient for smaller transactions or when compression overhead
is not justified.
Implementations§
Trait Implementations§
Source§impl Clone for UncompressedStorage
impl Clone for UncompressedStorage
Source§impl Debug for UncompressedStorage
impl Debug for UncompressedStorage
Source§impl Default for UncompressedStorage
impl Default for UncompressedStorage
Source§impl TransactionStorage for UncompressedStorage
impl TransactionStorage for UncompressedStorage
Source§fn write_transaction<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
file_path: &'life1 Path,
data: &'life2 [String],
) -> Pin<Box<dyn Future<Output = Result<PathBuf>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn write_transaction<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
file_path: &'life1 Path,
data: &'life2 [String],
) -> Pin<Box<dyn Future<Output = Result<PathBuf>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Write a transaction file to storage Read more
Source§fn write_transaction_from_file<'life0, 'life1, 'async_trait>(
&'life0 self,
file_path: &'life1 Path,
known_statement_count: usize,
) -> Pin<Box<dyn Future<Output = Result<PathBuf>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn write_transaction_from_file<'life0, 'life1, 'async_trait>(
&'life0 self,
file_path: &'life1 Path,
known_statement_count: usize,
) -> Pin<Box<dyn Future<Output = Result<PathBuf>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Write a transaction file from an existing uncompressed file Read more
Source§fn write_raw_lines_from_file<'life0, 'life1, 'async_trait>(
&'life0 self,
file_path: &'life1 Path,
_known_line_count: usize,
) -> Pin<Box<dyn Future<Output = Result<PathBuf>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn write_raw_lines_from_file<'life0, 'life1, 'async_trait>(
&'life0 self,
file_path: &'life1 Path,
_known_line_count: usize,
) -> Pin<Box<dyn Future<Output = Result<PathBuf>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Write a raw-lines file (event mode) from an existing uncompressed file Read more
Source§fn read_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
file_path: &'life1 Path,
start_index: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn read_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
file_path: &'life1 Path,
start_index: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Read SQL commands from a transaction file, starting from a specific index Read more
Source§fn delete_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
file_path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
file_path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete a transaction file Read more
Source§fn file_exists<'life0, 'life1, 'async_trait>(
&'life0 self,
file_path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn file_exists<'life0, 'life1, 'async_trait>(
&'life0 self,
file_path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if a file exists Read more
Source§fn file_extension(&self) -> &str
fn file_extension(&self) -> &str
Get the actual file extension used by this storage implementation Read more
Auto Trait Implementations§
impl Freeze for UncompressedStorage
impl RefUnwindSafe for UncompressedStorage
impl Send for UncompressedStorage
impl Sync for UncompressedStorage
impl Unpin for UncompressedStorage
impl UnsafeUnpin for UncompressedStorage
impl UnwindSafe for UncompressedStorage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more