module Functions: sig
.. end
val packages : Rapids.db -> Rapids.package_set
Return the set of all packages
val units : Rapids.db -> Rapids.unit_set
Return the set of all units
val sources : Rapids.db -> Rapids.source_set
Return the set of all sources
val archives : Rapids.db -> Rapids.archive_set
Return the set of all archives
val unit_id_to_package_set : Rapids.db -> Rapids.unit_id -> Rapids.package_set
Return the set of packages matching a unit
val unit_id_to_providers : Rapids.db ->
Rapids.unit_id ->
(Rapids.package_id, Rapids.version_number * Rapids.release_number,
Rapids.glob)
Napkin.versioned list
Return the set of packages providing a unit
val select : Rapids.db ->
(Rapids.Unit_index.id,
Rapids.Version_index.handle * Rapids.Release_index.handle, string)
Napkin.versioned -> Rapids.package_set
Return the set of packages matching a selector
val dependency_closure : Rapids.db ->
?relations:[ `Dep | `Pre ] list -> Rapids.package_set -> Rapids.package_set
Compute the forward dependencies closure of a given set of packages on the relation
in the list relations: `Pre
is for the pre-dependency relation,
`Dep
is for the dependency relation.
val dependency_path : ?conjunctive:bool ->
Rapids.db ->
Rapids.package_set ->
Rapids.package_id -> Rapids.package_id -> Rapids.package_id list option
Compute a dependency path in package_set from a to b (if it does not
exist, raise Not_found
val conflicts : Rapids.db -> Rapids.package_set -> Rapids.package_set
Compute the set of packages that conflict with a given set.
val get_package_from_id : Rapids.db -> Rapids.package_id -> Rapids.package
Return a package from its ID.
Scribes
val scribe_package : Rapids.db ->
'a Conduit.conduit ->
'a -> ?default_architecture:Rapids.architecture_id -> Rapids.package -> unit
Scribe the name of a package, omitting the architecture if it
is the default one.
val scribe_package_from_id : Rapids.db ->
'a Conduit.conduit ->
'a ->
?default_architecture:Rapids.architecture_id -> Rapids.package_id -> unit
Scribe the name of a package from its ID, omitting the architecture if it
is the default one.
val scribe_unit_from_id : Rapids.db -> 'a Conduit.conduit -> 'a -> Rapids.unit_id -> unit
Scribe the name of a unit from its ID
val scribe_archive_from_id : Rapids.db -> 'a Conduit.conduit -> 'a -> Rapids.archive_id -> unit
Scribe the name of a archive from its ID
val scribe_source_from_id : Rapids.db -> 'a Conduit.conduit -> 'a -> Rapids.source_id -> unit
Scribe the name of a source from its ID
val scribe_version_from_number : Rapids.db ->
'a Conduit.conduit ->
'a -> Rapids.version_number * Rapids.release_number -> unit
Scribe the name of a version from its number