Skip to main content

Crate zoi_db

Crate zoi_db 

Source
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§

CompletionEntry
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 SQLite connection 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.