Crate jdb_fs

Crate jdb_fs 

Source

Re-exports§

pub use item::DataLen;
pub use item::Error;
pub use item::Item;
pub use item::Offset;
pub use item::Result;
pub use item::Row;

Modules§

consts
item
Item encoding and decoding 条目编码和解码
load
Load functions for loading data from fs 从文件加载数据的函数

Structs§

AtomWrite
Write to temp fs, rename on success, delete on failure 写入临时文件,成功时重命名,失败时删除
AutoCompact
Auto-compacting log wrapper 自动压缩日志包装器
BufFile
Double-buffered file with background flush 双缓冲文件,后台刷新

Traits§

Compact
Compactable trait for log-structured data 可压缩 trait,用于日志结构数据

Functions§

buf_writer
Create a BufWriter with cursor and default capacity 使用游标和默认容量创建 BufWriter
buf_writer_with_pos
Create a BufWriter with cursor at specific position 使用游标(在特定位置)创建 BufWriter
push_iter
Push multiple items with data to writer 写入多个条目和数据到写入器
read_write
Open fs for reading and writing, create if not exists 打开文件进行读写,不存在则创建
try_rm
Try to delete fs if not locked, return true if deleted 尝试删除未锁定的文件,删除成功返回 true

Type Aliases§

IncrCount
Increment count flag 增加计数标志
Len
Pos
Size