Expand description
Database management for Zoi registry metadata.
This crate provides functionality to manage the SQLite-based registry metadata, including package information, file indexing, and security advisories.
Structs§
- Completion
Entry - A single entry for shell completion.
Functions§
- clear_
package_ files - Clears the file index for a specific package.
- clear_
registry - Clears all package and advisory data from the database.
- delete_
package - Deletes a package from the database.
- find_
provides - Finds packages that provide a specific command or file.
- get_
advisories_ for_ package - Retrieves all security advisories for a specific package.
- get_
all_ versions - Retrieves all versions of a specific package from the database.
- get_
db_ path - Gets the path to the database for a specific registry.
- get_
dependents - Finds all installed packages that depend on a specific package.
- get_
package_ dependencies - Retrieves the dependencies of a specific package version.
- get_
package_ files_ from_ db - Retrieves the list of files associated with a package from the database.
- get_
package_ hash_ from_ db - Retrieves the archive hash for a package from the database.
- get_
package_ id - Retrieves the internal database ID for a package.
- get_
package_ sizes_ from_ db - Retrieves the archive and installed sizes for a package from the database.
- get_
packages_ for_ completion - Retrieves a list of packages suitable for shell completion.
- has_
other_ owners - Checks if a file path is owned by any package other than the specified one.
- index_
package_ files - Indexes the files provided by a package.
- list_
all_ advisories - Lists all security advisories in the database.
- list_
all_ packages - Lists all packages in the database.
- open_
connection - Opens a connection to the registry database and ensures the schema is set up.
- open_
connection_ no_ setup - Opens a raw
SQLiteconnection and configures high-performance pragmas. - search_
files - Searches for files matching a search term.
- search_
packages - Searches for packages matching a search term.
- set_
package_ hash - Updates the archive hash for a package.
- set_
package_ sizes - Updates the archive and installed sizes for a package.
- update_
advisory - Updates or inserts a security advisory in the database.
- update_
package - Updates or inserts a package in the database.