Skip to content

DbalRowWriter ​

php
final readonly class StanislasPoisson\FrenchPostalCode\Symfony\Doctrine\DbalRowWriter implements RowWriter

Writes the rows of the loader with DBAL: one statement per block of rows.

DBAL has no portable upsert, so the statement depends on the platform: ON DUPLICATE KEY UPDATE for MySQL and MariaDB, ON CONFLICT DO UPDATE for PostgreSQL and SQLite. Another platform is refused, not guessed.

Source: src/Symfony/Doctrine/DbalRowWriter.php

Methods ​

__construct() ​

php
public function __construct(Connection $connection, string $prefix)

count() ​

php
public function count(string $table): int

linkReplacedCities() ​

php
public function linkReplacedCities(array $links): void
ParameterDescription
$linksidentifier of a city => identifier of the city that replaces it

transaction() ​

php
public function transaction(callable $callback): void

upsert() ​

php
public function upsert(string $table, array $rows, array $updateColumns): void

Documentation of next , built from 068662f on main by pipeline #37508150537 on 2026-10-06.