Struct starry::Db [−][src]
pub struct Db { pub dir: PathBuf, }
the database
Fields
dir: PathBuf
where the DB is on disk
Implementations
impl Db
[src]
impl Db
[src]pub fn new() -> Result<Self>
[src]
pub fn user_stars_dir(&self, user_id: &UserId) -> PathBuf
[src]
pub fn last_user_obs(&self, user_id: &UserId) -> Result<Option<UserObs>>
[src]
pub fn count_user_obs(&self, user_id: &UserId) -> Result<usize>
[src]
pub fn extract_user(&self, user_id: &UserId) -> Result<Vec<DatedObs>>
[src]
read in database the time serie made of the total numbers of stars of a user per date. Records are not sorted by date.
pub fn extract_user_query(
&self,
user_id: &UserId,
repo_names: Vec<&str>
) -> Result<Vec<UserResponseLine>>
[src]
&self,
user_id: &UserId,
repo_names: Vec<&str>
) -> Result<Vec<UserResponseLine>>
fetches and return the (unordered) lines, one per time, for the given user query
pub fn update(&mut self, conf: &Conf) -> Result<Vec<RepoChange>>
[src]
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]