Appearance
EloquentRowWriter
php
final readonly class StanislasPoisson\FrenchPostalCode\Laravel\EloquentRowWriter implements RowWriterWrites 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): intlinkReplacedCities()
php
public function linkReplacedCities(array $links): void| Parameter | Description |
|---|---|
$links | identifier of a city => identifier of the city that replaces it |
transaction()
php
public function transaction(callable $callback): voidupsert()
php
public function upsert(string $table, array $rows, array $updateColumns): void