نظرة عامة على PyroSQL
PyroSQL is a custom database engine written in Rust. It speaks the PostgreSQL wire protocol version 3 natively, which means every PostgreSQL-compatible library, driver, and tool connects to it without modification — including the PDO pgsql driver that Doctrine DBAL uses under the hood.
On top of standard SQL, PyroSQL adds a set of HTAP (Hybrid Transactional/Analytical Processing) capabilities: time-travel queries, database branching, vector similarity search, approximate query processing, Change Data Capture streaming, and WebAssembly user-defined functions. All of these are exposed through Weaver ORM's PyroSQL integration layer.
Configuring the connection
Add the PyroSQL driver to your Symfony configuration by setting driver: pyrosql. Because PyroSQL speaks the PostgreSQL wire protocol, all the standard PostgreSQL connection parameters apply.
# config/packages/weaver_orm.yaml
weaver_orm:
connections:
default:
driver: pyrosql
host: 127.0.0.1
port: 5432
dbname: myapp
user: app
password: secret
The pyrosql driver identifier tells Weaver ORM to wrap the underlying DBAL connection with PyroSqlDriver, which probes for PyroSQL-specific capabilities on the first use.