generated from tpl/purs
Add out file parameter to purspgpp
This commit is contained in:
parent
8fbd7e38b0
commit
d86e229702
4
purspgpp
4
purspgpp
@ -75,7 +75,7 @@ sub process-query(libpq::Connection:D $conn, Str:D $source --> Str:D) {
|
||||
"(Query \"\"\"$source\"\"\" :: Query ($parameters) ($fields))";
|
||||
}
|
||||
|
||||
sub MAIN(Str $connection-string, IO(Cool) $filename) {
|
||||
sub MAIN(Str $connection-string, IO(Cool) $in-file, IO(Cool) $out-file) {
|
||||
my $conn = libpq::Connection.new($connection-string);
|
||||
print process-module($conn, $filename.slurp);
|
||||
$out-file.spurt(process-module($conn, $in-file.slurp));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user