indigophp / fuelphp-dbal
此包已被废弃,不再维护。未建议替代包。
FuelPHP DBAL 集成
dev-develop
2015-03-16 04:25 UTC
Requires
- doctrine/dbal: ~2.4
This package is auto-updated.
Last update: 2021-11-24 09:12:17 UTC
README
此包是围绕doctrine/dbal包的包装。
安装
通过 Composer
$ composer require indigophp/fuelphp-dbal
使用
只需安装此包,即可在 FuelPHP 内使用 DBAL。
配置
'dbname' => 'database' 'host' => 'localhost' 'port' => 1234 'user' => 'user', 'password' => 'secret', 'driver' => 'pdo_mysql', 'driver_class' => 'MyNamespace\\MyDriverImpl', // the DBAL driverClass option 'options' => array( // the DBAL driverOptions option 'foo' => 'bar', ), 'path' => '', 'wrapper_class' => 'MyDoctrineDbalConnectionWrapper', // the DBAL wrapperClass option 'charset' => 'UTF8', 'profiling' => true, 'mapping_types' => array( 'enum' => 'string', ), 'types' => array( 'custom' => 'MyCustomType', ),
贡献
请参阅CONTRIBUTING以获取详细信息。
致谢
许可
MIT 许可证 (MIT)。请参阅许可文件以获取更多信息。