pub struct RusqliteStore<'connection> { /* private fields */ }Implementations§
Source§impl<'connection> RusqliteStore<'connection>
impl<'connection> RusqliteStore<'connection>
pub fn from_connection(connection: &'connection Connection) -> Result<Self>
pub fn from_connection_with_namespace( connection: &'connection Connection, namespace: impl AsRef<str>, ) -> Result<Self>
pub fn from_connection_with_options( connection: &'connection Connection, options: SqliteStoreOptions, ) -> Result<Self>
pub fn ensure_schema(connection: &Connection) -> Result<()>
pub fn ensure_schema_with_options( connection: &Connection, options: &SqliteStoreOptions, ) -> Result<()>
pub fn connection(&self) -> &Connection
pub fn namespace(&self) -> Option<&str>
pub fn merkle_mode(&self) -> MerkleMode
pub fn put_objects_batch(&self, objects: &[ObjectRecord]) -> Result<()>
pub fn put_file_recipe_cache_batch( &self, entries: &[(Hash32, Hash32)], ) -> Result<()>
pub fn put_chunk( &self, hash: Hash32, content: &[u8], codec: Codec, ) -> Result<()>
pub fn put_recipe( &self, hash: Hash32, content: &[u8], codec: Codec, ) -> Result<()>
pub fn read_object_record(&self, hash: &Hash32) -> Result<Option<ObjectRecord>>
pub fn existing_hashes(&self, hashes: &[Hash32]) -> Result<HashSet<Hash32>>
pub fn chunk_stored_bytes(&self, hash: &Hash32) -> Result<Option<u64>>
pub fn chunk_sizes(&self) -> Result<Vec<(Hash32, u64)>>
pub fn file_recipe_cache(&self) -> Result<HashMap<Hash32, Hash32>>
pub fn recipe_for_file_hash(&self, file_hash: &Hash32) -> Result<Option<Hash32>>
pub fn all_objects(&self) -> Result<Vec<VerifiedObject>>
pub fn object_records( &self, offset: u64, limit: usize, ) -> Result<Vec<ObjectRecord>>
pub fn integrity_check(&self) -> Result<()>
pub fn rebuild_merkle_index(&self) -> Result<MerkleSummary>
pub fn merkle_summary(&self) -> Result<MerkleSummary>
pub fn recompute_merkle_summary(&self) -> Result<MerkleSummary>
pub fn prove_membership(&self, hash: &Hash32) -> Result<Option<MerkleProof>>
pub fn prove_memberships_batch( &self, hashes: &[Hash32], ) -> Result<Vec<Option<MerkleProof>>>
pub fn verify_proof( target: &Hash32, proof: &MerkleProof, expected_root: &Hash32, leaf_count: u64, ) -> bool
pub fn verified_object_hashes(&self) -> Result<Vec<Hash32>>
Trait Implementations§
Source§impl ObjectSource for RusqliteStore<'_>
impl ObjectSource for RusqliteStore<'_>
fn read_object(&self, hash: &Hash32) -> Result<Option<VerifiedObject>>
Auto Trait Implementations§
impl<'connection> !RefUnwindSafe for RusqliteStore<'connection>
impl<'connection> !Send for RusqliteStore<'connection>
impl<'connection> !Sync for RusqliteStore<'connection>
impl<'connection> !UnwindSafe for RusqliteStore<'connection>
impl<'connection> Freeze for RusqliteStore<'connection>
impl<'connection> Unpin for RusqliteStore<'connection>
impl<'connection> UnsafeUnpin for RusqliteStore<'connection>
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