lordkino/yii2-oci8pdo

Translate pdo command to oci8

Maintainers

Details

github.com/LordKino/oci8pdo

Source

Installs: 23

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 2

Type:yii2-extension

1.0.1 2018-05-24 14:52 UTC

This package is not auto-updated.

Last update: 2024-04-14 02:49:35 UTC


README

Translate pdo command to oci8

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist lordkino/yii2-oci8pdo "*"

or add

"lordkino/yii2-oci8pdo": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

        'db' => [
            'class' => 'lordkino\oci8pdo\Connection',
            'dsn' => 'oci:dbname=//dbhost:1521/dbasename',
            'username' => 'username',
            'password' => 'password',
            'charset' => 'utf8',
            'attributes' => [
                PDO::ATTR_STRINGIFY_FETCHES => true,
            ],
        ],```