The shell will have removed the quotes before passing the argument to the process, so you need to remove the quotes from the db string. It is probably better to use a Seq
of arguments rather than a string:
Seq("csvsql", "--db", "postgresql://user:password@localhost:5432/samples", "--table", "sample_table", "--insert", "/absolute.path.csv") !!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…