Struct libalpm::Db [] [src]

pub struct Db<'a> { /* fields omitted */ }

A database of packages. This is only ever available as a reference

Methods

impl<'a> Db<'a>
[src]

Gets the name of the database.

Gets the signature checking level of the database.

Checks the database is valid. If not, an error

Gets a list of the servers used by the database.

Sets the servers used by the database.

Adds a server to the list of servers used by the database.

Removes a server from the list of servers used by the database.

Update (sync) the database with remote.

If force is set to false and the database is up to date the function will return successfully without doing anything.

Gets a package with the given name from the database

Gets all packages in the db cache

Gets a package group from the database by name.

Gets the package group cache of the database.

Searches the database for packages matching the needles.

This function has a memory leak, but I'm 99% sure it's internal to libalpm. Needs more testing.

Sets what this database is to be used for.

Gets what this database is to be used for.

Trait Implementations

impl<'a> Debug for Db<'a>
[src]

Formats the value using the given formatter.