From 69d9b6ada15af41fa5db179f71c2bb284c643f96 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Fri, 6 Feb 2026 19:03:27 +0100 Subject: Added a dry-run mode which does not requires the data --- lib/file_handler/dry_run.ml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lib/file_handler/dry_run.ml (limited to 'lib') diff --git a/lib/file_handler/dry_run.ml b/lib/file_handler/dry_run.ml new file mode 100644 index 0000000..ea17a23 --- /dev/null +++ b/lib/file_handler/dry_run.ml @@ -0,0 +1,17 @@ +module A = ImportAnalyser.Dependency +module C = ImportContainers +module Db = ImportSQL.Db + +let importInDatable : + log_error:ImportErrors.t -> + conf:ImporterSyntax.t -> + dirname:string -> + A.t -> + 'a Db.t -> + ImportDataTypes.Value.t array option Lwt.t = + fun ~log_error ~conf ~dirname mapping db -> + ignore dirname; + ignore conf; + ignore log_error; + ignore @@ Db.create_table db mapping; + Lwt.return None -- cgit v1.2.3