hubert / avocado-mysql-driver
v3.1.2
2023-03-30 10:06 UTC
Requires
- php: 8.*
- ext-pdo: *
- hubert/avocado: dev-main
Requires (Dev)
- phpunit/phpunit: 10.0.16
README
Driver based on PDO. Will works with MySQL and MariaDB.
Use example
#[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(); }