diff options
| author | polo <ordipolo@gmx.fr> | 2026-10-18 00:08:23 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2026-10-18 00:10:03 +0200 |
| commit | 05e38eadbeb3de19e5b26003c2b401e00bb71df4 (patch) | |
| tree | cf48350b69cfce92de6f3a0e03eb0876931c7077 /vendor/doctrine/dbal/src/Driver/PgSQL/ConvertParameters.php | |
| parent | 32843e50aa981f190bdb4fbc9adbeacc06fdf775 (diff) | |
| download | AppliGestionPHP-05e38eadbeb3de19e5b26003c2b401e00bb71df4.tar.gz AppliGestionPHP-05e38eadbeb3de19e5b26003c2b401e00bb71df4.tar.bz2 AppliGestionPHP-05e38eadbeb3de19e5b26003c2b401e00bb71df4.zip | |
sortie de vendor du dépôt, oubli dans config-template.ini
Diffstat (limited to 'vendor/doctrine/dbal/src/Driver/PgSQL/ConvertParameters.php')
| -rw-r--r-- | vendor/doctrine/dbal/src/Driver/PgSQL/ConvertParameters.php | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/vendor/doctrine/dbal/src/Driver/PgSQL/ConvertParameters.php b/vendor/doctrine/dbal/src/Driver/PgSQL/ConvertParameters.php deleted file mode 100644 index 795f12d..0000000 --- a/vendor/doctrine/dbal/src/Driver/PgSQL/ConvertParameters.php +++ /dev/null | |||
| @@ -1,49 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Driver\PgSQL; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\SQL\Parser\Visitor; | ||
| 8 | |||
| 9 | use function count; | ||
| 10 | use function implode; | ||
| 11 | |||
| 12 | final class ConvertParameters implements Visitor | ||
| 13 | { | ||
| 14 | /** @var list<string> */ | ||
| 15 | private array $buffer = []; | ||
| 16 | |||
| 17 | /** @var array<array-key, int> */ | ||
| 18 | private array $parameterMap = []; | ||
| 19 | |||
| 20 | public function acceptPositionalParameter(string $sql): void | ||
| 21 | { | ||
| 22 | $position = count($this->parameterMap) + 1; | ||
| 23 | $this->parameterMap[$position] = $position; | ||
| 24 | $this->buffer[] = '$' . $position; | ||
| 25 | } | ||
| 26 | |||
| 27 | public function acceptNamedParameter(string $sql): void | ||
| 28 | { | ||
| 29 | $position = count($this->parameterMap) + 1; | ||
| 30 | $this->parameterMap[$sql] = $position; | ||
| 31 | $this->buffer[] = '$' . $position; | ||
| 32 | } | ||
| 33 | |||
| 34 | public function acceptOther(string $sql): void | ||
| 35 | { | ||
| 36 | $this->buffer[] = $sql; | ||
| 37 | } | ||
| 38 | |||
| 39 | public function getSQL(): string | ||
| 40 | { | ||
| 41 | return implode('', $this->buffer); | ||
| 42 | } | ||
| 43 | |||
| 44 | /** @return array<array-key, int> */ | ||
| 45 | public function getParameterMap(): array | ||
| 46 | { | ||
| 47 | return $this->parameterMap; | ||
| 48 | } | ||
| 49 | } | ||
