mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-05 10:56:10 +02:00
Make it easier to test “main” code.
This code path is exercised from the command line only, which means I don't get to run it that often. And it's a pain to debug. So make it easier to run `process-source-and-target` from the REPL.
This commit is contained in:
parent
773dcaeca3
commit
30f359735c
@ -396,8 +396,9 @@
|
||||
(format stream "Could not parse the command line: see above."))))
|
||||
|
||||
(defun process-source-and-target (source-string target-string
|
||||
type encoding set with field cast
|
||||
before after)
|
||||
&optional
|
||||
type encoding set with field cast
|
||||
before after)
|
||||
"Given exactly 2 CLI arguments, process them as source and target URIs.
|
||||
Parameters here are meant to be already parsed, see parse-cli-optargs."
|
||||
(let* ((type (handler-case
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user