pub struct AliasDb { /* private fields */ }
Expand description
Provides access to the aliases database of the SeqRepo
.
Implementations§
Source§impl AliasDb
impl AliasDb
pub fn new<P>(sr_root_dir: &P, sr_instance: &str) -> Result<Self, Error>
Sourcepub fn try_clone(&self) -> Result<Self, Error>
pub fn try_clone(&self) -> Result<Self, Error>
Try to clone the AliasDb
.
A new sqlite connection must be made so this can fail.
Sourcepub fn find<F>(&self, query: &Query, f: F) -> Result<(), Error>
pub fn find<F>(&self, query: &Query, f: F) -> Result<(), Error>
Find aliases an call f
on each result record.
The arguments, all optional, restrict the records that are returned, possibly all.
Regardless of the query, results are ordered by seq_id
.
If query.alias
or query.seqid
contain %
, the like
comparison operator is
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AliasDb
impl RefUnwindSafe for AliasDb
impl Send for AliasDb
impl Sync for AliasDb
impl Unpin for AliasDb
impl UnwindSafe for AliasDb
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