module Waterway:Glues RAPIDS and various parser modules to provide a convenient way of loading a RAPIDS database.sig
..end
type
waterway =
| |
File of |
| |
Directory of |
| |
Dose of |
typespecification =
(Rapids.liquid * waterway) list
liquid
. Yes, this
could have been factored but it is not very important and simpler that way.(deb|dose|rpm|doserpm):filename(,(deb|dose|rpm|doserpm):filename)*
For example:
dose:/tmp/dose,deb:/var/lib/apt/lists/ftp.fr.debian.org_debian_dists_testing_main_binary-i386_Packages
is a valid specification.
val specification_of_string : string -> specification
val merge : Rapids.db ->
?progress:Progress.indicator ->
?add_file_conflicts:bool -> ?overlay:bool -> specification -> unit
with_database sl handler
where sl
is a waterstream specification and handler
is your function.