gam6itko / cycle-nyholm-dsn-bridge
sypex-geo bridge for spiral framework
Installs: 1 785
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^8.0
- cycle/database: ^2.0
- nyholm/dsn: ^2.0
Requires (Dev)
- phpunit/phpunit: ^10.0
This package is auto-updated.
Last update: 2024-11-30 01:59:48 UTC
README
# app/config/database.php return [ 'default' => env('DATABASE_DEFAULT_DRIVER', 'my-db'), 'databases' => [ 'my-db' => [ 'connection' => 'mysql.db', ], ], 'connections' => [ 'mysql.db' => new MySQLDriverConfig( // 'mysql:host=mysql;dbname=testdb;charset=utf8mb4', 'user', 'pass' new NyholmDsnConnectionConfig('mysql://user:pass@mysql:3306/testdb?charset=utf8mb4') ), ], ];