Search by

Orion storage over PDO (PostgreSQL, MySQL, SQLite) on the host's own connection, with the table installer

Package info

github.com/univeros/orion.pdo

pkg:composer/orion-search/pdo

Statistics

Installs: 0

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main / 1.0.x-dev 2026-10-27 18:15 UTC

This package is auto-updated.

Last update: 2026-10-27 19:15:56 UTC


README

Orion's Storage port over PDO for PostgreSQL, MySQL and SQLite, on the connection your application already uses. That is the point: the outbox row Orion records commits or rolls back with your entity write, because it is written on the same connection and joins the transaction your code (or your ORM) already opened.

composer require orion-search/pdo
use Orion\Pdo\Installer;
use Orion\Pdo\PdoStorage;

Installer::install($pdo);          // creates the orion_* tables the connection lacks; idempotent
$storage = new PdoStorage($pdo);   // pass it to Orion\Wiring\Config

The connection must use PDO::ERRMODE_EXCEPTION (PHP's default since 8.0); PdoStorage never reconfigures it. Proven by Orion\Testing\StorageConformanceTestCase on SQLite, PostgreSQL and MySQL.

How the outbox uses the connection: the Indexing guide.