MySQL avocado driver
MySQL driver will work with both of MySQL and MariaDB implementations.
Installation
bash
composer require hubert/avocado-mysql-driverSample usage
php
#[Configuration]
class DatasourceConfiguration {
#[Leaf]
public function datasource(): DataSource {
return (new DataSourceBuilder())
->username("...")
->password("...")
->server("...")
->port(3306)
->driver(MySQLDriver::class) // or FQN -> "\\Avocado\\MysqlDriver\\MySQLDriver"
->databaseName("")
->build();
}