diff options
| author | Sébastien Dailly <sebastien@dailly.me> | 2026-02-06 19:03:27 +0100 |
|---|---|---|
| committer | Sébastien Dailly <sebastien@dailly.me> | 2026-02-06 19:03:27 +0100 |
| commit | 69d9b6ada15af41fa5db179f71c2bb284c643f96 (patch) | |
| tree | 4236a778d6f93e9dca808bdb52db3172f6e55752 /lib/file_handler/dry_run.ml | |
| parent | d01f0ceae62116443c501889f88c0f8782ec6250 (diff) | |
Added a dry-run mode which does not requires the data
Diffstat (limited to 'lib/file_handler/dry_run.ml')
| -rw-r--r-- | lib/file_handler/dry_run.ml | 17 |
1 files changed, 17 insertions, 0 deletions
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 |
