M3 Integration fixes

This commit is contained in:
Mark Gregory
2026-09-21 12:35:52 +01:00
parent e776eb0211
commit fc7abb3f64
21 changed files with 35 additions and 35 deletions
@@ -20,27 +20,31 @@ class PostgresProgramBridge
private string $errorMessage = '';
private array $options = [];
public function setOptions(array $options): self
{
$this->options = $options;
return $this;
}
public function AddParameterChar(string $io, int $size, string $comment = '', string $name = '', mixed $value = null, mixed ...$rest): array
public function addParameterChar(string $io, int $size, string $comment = '', string $name = '', mixed $value = null): array
{
return compact('io', 'size', 'comment', 'name', 'value');
}
public function AddParameterPackDec(string $io, int $length, int $scale, string $comment = '', string $name = '', mixed $value = null, mixed ...$rest): array
public function addParameterPackDec(string $io, int $length, int $scale, string $comment = '', string $name = '', mixed $value = null): array
{
return ['type' => 'packed_decimal'] + compact('io', 'length', 'scale', 'comment', 'name', 'value');
}
public function AddParameterZoned(string $io, int $length, int $scale, string $comment = '', string $name = '', mixed $value = null, mixed ...$rest): array
public function addParameterZoned(string $io, int $length, int $scale, string $comment = '', string $name = '', mixed $value = null): array
{
return ['type' => 'zoned_decimal'] + compact('io', 'length', 'scale', 'comment', 'name', 'value');
}
public function PgmCall(string $program, ?string $library = null, array $parameters = [], array $returnParameters = [], array $options = []): array|false
public function pgmCall(string $program, ?string $library = null, array $parameters = [], array $returnParameters = [], array $options = []): array|false
{
return $this->queue('program', $program, $library, [
'parameters' => $parameters,
@@ -49,7 +53,7 @@ class PostgresProgramBridge
]);
}
public function CLCommand(string $command): array|false
public function clCommand(string $command): array|false
{
return $this->queue('command', $command, null, []);
}