Skip to content

EloquentRowWriter ​

php
final readonly class StanislasPoisson\FrenchPostalCode\Laravel\EloquentRowWriter implements RowWriter

Writes the rows of the loader with the query builder of Laravel: one statement per block of rows, on any database Laravel supports (MySQL, MariaDB, PostgreSQL, SQLite, SQL Server).

Source: src/Laravel/EloquentRowWriter.php

Methods ​

__construct() ​

php
public function __construct(ConnectionInterface $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.