Struct reups_lib::DB

source ·
pub struct DB { /* private fields */ }
Expand description

Database object that library consumers interact though. This DB encodes all the relations between products, versions, tags, and tables that are encoded in the filesystem besed database.

Implementations§

Creates a new DB object. Optionally takes the path to a system database, a user database, and where the products themselves are located. Another optional argument is a DBLoadControl, which specifies which products are to be preloaded from disk at database creation time. Set the option to None if no products are to be loaded and

Returns a vector containing the names of all the products that are known to the database.

Returns the paths to the system and (optionally if one exists) user databases

Produces a vector of all the versions of the specified product

Outputs a vector of all tags corresponding to the specified product

Looks up the table corresponding to the product, version combination specified.

Lists the flavors of a product corresponding to a specified product and version

Looks up all the versions which correspond to specified prodcut and tag

Looks up a table file given a product and tag

Look up if a given product exists in the database

Trait Implementations§

Describes how the db will be shown when written in a formatted

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.