pub struct RepoDatabaseRead { /* private fields */ }Implementations§
Source§impl RepoDatabaseRead
impl RepoDatabaseRead
pub fn new<P>(path: P) -> Result<RepoDatabaseRead, Error>
pub fn match_album( &self, catalog: &str, release_date: &AnniDate, disc_count: u8, album_title: &str, _edition: Option<&str>, ) -> Result<Option<Uuid>, Error>
Sourcepub fn read_album(&self, album_id: Uuid) -> Result<Option<Album>, Error>
pub fn read_album(&self, album_id: Uuid) -> Result<Option<Album>, Error>
Read a full Album from the database.
The album is not formatted.
pub fn get_album(&self, album_id: Uuid) -> Result<Option<AlbumRow>, Error>
pub fn get_disc( &self, album_id: Uuid, disc_id: u8, ) -> Result<Option<DiscRow>, Error>
pub fn get_discs(&self, album_id: Uuid) -> Result<Vec<DiscRow>, Error>
pub fn get_track( &self, album_id: Uuid, disc_id: u8, track_id: u8, ) -> Result<Option<TrackRow>, Error>
pub fn get_tracks( &self, album_id: Uuid, disc_id: u8, ) -> Result<Vec<TrackRow>, Error>
pub fn get_tag( &self, album_id: Uuid, disc_id: Option<u8>, track_id: Option<u8>, ) -> Result<Vec<TagString>, Error>
👎Deprecated:
Use get_item_tags instead
Get a list of tags for an album, a disc, or a track.
Get relationship between tags
pub fn get_albums_by_tag( &self, tag: &str, recursive: bool, ) -> Result<Vec<AlbumRow>, Error>
pub fn reload(&mut self) -> Result<(), Error>
Auto Trait Implementations§
impl !Freeze for RepoDatabaseRead
impl !RefUnwindSafe for RepoDatabaseRead
impl !Sync for RepoDatabaseRead
impl !UnwindSafe for RepoDatabaseRead
impl Send for RepoDatabaseRead
impl Unpin for RepoDatabaseRead
impl UnsafeUnpin for RepoDatabaseRead
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more