hubert/avocado-mysql-driver

v3.1.2 2023-03-30 10:06 UTC

This package is auto-updated.

Last update: 2024-10-30 02:40:52 UTC


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();
    }