Skip to content

Commit

Permalink
Merge pull request #3 from hpacleb/fix-osFileProcClause
Browse files Browse the repository at this point in the history
fix: Fix osFileProcClause
  • Loading branch information
yajra authored Jun 4, 2024
2 parents 72c8669 + 9ff02b4 commit 600f9e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/SQLLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -429,13 +429,14 @@ public function inFile(
string $path,
?string $badFile = null,
?string $discardFile = null,
?string $discardMax = null
?string $discardMax = null,
?string $osFileProcClause = null,
): static {
if (! File::exists($path) && ! Str::contains($path, ['*', '?'])) {
throw new InvalidArgumentException("File [{$path}] does not exist.");
}

$this->inputFiles[] = new InputFile($path, $badFile, $discardFile, $discardMax);
$this->inputFiles[] = new InputFile($path, $badFile, $discardFile, $discardMax, $osFileProcClause);

return $this;
}
Expand Down

0 comments on commit 600f9e9

Please sign in to comment.