fn size(&self) -> u64 {
        if let Some(tx) = log_err!(self.db_env.begin_ro_txn(), &self.log, "begin_ro_txn") {
            if let Some(mut cursor) = log_err!(
                tx.open_ro_cursor(self.artifacts),
                &self.log,
                "open_ro_cursor"
            ) {
                return cursor.iter().count() as u64;
            }
        }
        0
    }
/// Number of artifacts in the DB.
Number of artifacts in the DB.
Number of artifacts in the DB .
fn size(&self) -> u64 {
        if let Some(tx) = log_err!(self.db_env.begin_ro_txn(), &self.log, "begin_ro_txn") {
            if let Some(mut cursor) = log_err!(
                tx.open_ro_cursor(self.artifacts),
                &self.log,
                "open_ro_cursor"
            ) {
                return cursor.iter().count() as u64;
            }
        }
        0
    }
fn size ( & self ) -> u64 { if let Some ( tx ) = log_err ! ( self db_env begin_ro_txn ( ) self log " " ) { if let Some ( mut cursor ) = log_err ! ( tx open_ro_cursor ( self artifacts ) self log " " ) { return cursor . iter ( ) . count ( ) as u64 ; } } 0 }
Number of artifacts in the DB.
Number of artifacts in the DB .
&self
&self