intersvyaz/pdo-oci8

PDO userspace driver proxying calls to PHP OCI8 driver

2.0.5 2017-02-10 19:16 UTC

This package is auto-updated.

Last update: 2024-12-08 07:03:32 UTC


README

Latest Stable Version Total Downloads License

This package is a simple userspace driver for PDO that uses the tried and tested OCI8 functions instead of using the still experimental and not all that functionnal PDO_OCI library.

Please report any bugs you may find.

Features

Automatic save blob fields.

Use Oci8::PARAM_BLOB and Oci8::PARAM_CLOB constant in bindValue.

Yii::app()->db->createCommand("INSERT INTO table (data) VALUES (empty_blob()) returning data into :data")
->bindParam(':data', 'very very long string', Oci8::PARAM_BLOB)
->execute();

##Installation

Run php composer.phar require "intersvyaz/pdo-oci8: ~2.0.0" or add as a requirement to composer.json:

{
    "require": {
        "intersvyaz/pdo-oci8": "~2.0.0"
    }
}

And then run composer update

###Credits