pub fn read_record_by_id(&self, id: Id) -> String {
        self.db.take(|db| {
            let read = db.reader().prepare_read(id).expect("unable to read id");

            if let CResult::Read(read) = send(CRequest::Read(read)) {
                let record = db.reader().read(read).expect(line_error!());
                String::from_utf8(record).expect("unable to read id")
            } else {
                panic!("unable to read id")
            }
        })
    }
// read a record by its ID into plaintext.
read a record by its ID into plaintext.
read a record by its ID into plaintext .
pub fn read_record_by_id(&self, id: Id) -> String {
        self.db.take(|db| {
            let read = db.reader().prepare_read(id).expect("unable to read id");
            if let CResult::Read(read) = send(CRequest::Read(read)) {
                let record = db.reader().read(read).expect(line_error!());
                String::from_utf8(record).expect("unable to read id")
            } else {
                panic!("unable to read id")
            }
        })
    }
pub fn read_record_by_id ( & self , id : Id ) -> String { self . db . take ( | db | { let read = db . reader ( ) . prepare_read ( id ) . expect ( " " ) ; if let CResult :: Read ( read ) = send ( CRequest :: Read ( read ) ) { let record = db . reader ( ) . read ( read ) . expect ( line_error ! ( ) ) ; String :: from_utf8 ( record ) . expect ( " " ) } else { panic ! ( " " ) } } ) }
read a record by its ID into plaintext.
read a record by its ID into plaintext .
&self
id
Id