pub struct SqliteCache {
pub conn: Connection,
}Fields§
§conn: ConnectionImplementations§
Source§impl SqliteCache
impl SqliteCache
Trait Implementations§
Source§impl CacheStore for SqliteCache
impl CacheStore for SqliteCache
Source§fn upsert_file(&self, path: &str, hash: &str, content: &[u8]) -> Result<i64>
fn upsert_file(&self, path: &str, hash: &str, content: &[u8]) -> Result<i64>
Insert or update a file and its content. Returns the file_id.
Source§fn get_file_hash(&self, path: &str) -> Result<Option<String>>
fn get_file_hash(&self, path: &str) -> Result<Option<String>>
Get a file’s hash to check if it has changed
Auto Trait Implementations§
impl !Freeze for SqliteCache
impl !RefUnwindSafe for SqliteCache
impl Send for SqliteCache
impl !Sync for SqliteCache
impl Unpin for SqliteCache
impl UnsafeUnpin for SqliteCache
impl !UnwindSafe for SqliteCache
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