2017 © Pedro PelĂĄez
 

fuel-package fuel-dbal

Fuel DBAL integration

image

indigophp/fuel-dbal

Fuel DBAL integration

  • Sunday, September 21, 2014
  • by mark.sagikazar
  • Repository
  • 0 Watchers
  • 0 Stars
  • 70 Installations
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Fuel DBAL

Build Status Latest Stable Version Total Downloads License Dependency Status, (*1)

This package is a wrapper around doctrine/dbal package., (*2)

Install

Via Composer, (*3)

``` json { "require": { "indigophp/fuel-dbal": "@stable" } }, (*4)



## Usage You can use the fuel `db` configuration or you can place your configuration in `dbal`. `dbal` is checked first and it must be in DBAL compatible format, only the legacy `db` configurations are converted. ``` php // Returns a DBAL Connection object $conn \Dbal::forge('default');

Dbal class extends Facade and uses Facade\Instance from indigophp/fuel-core., (*5)

Configuration

``` php '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', ),, (*6)



### Profiling No configuration is required beyond enabling profiling for your connection. Queries sent through DBAL will automatically appear in the Fuel profiler. **Note:** You can use the package even without loading it since composer handles autoloading. ## Testing ``` bash $ codecept run

Contributing

Please see CONTRIBUTING for details., (*7)

Credits

License

The MIT License (MIT). Please see License File for more information., (*8)

The Versions