alfmel/pdo-via-oci8 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

alfmel/pdo-via-oci8

Composer 安装命令:

composer require alfmel/pdo-via-oci8

包简介

Userspace PDO driver for Oracle via the PHP OCI8 driver

README 文档

README

###PDO via Oci8

The alfmel/pdo-via-oci8 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 functional PDO_OCI library.

This fork from yajra/laravel-pdo-via-oci8 restores full DSN support (previously removed to fit better within Laravel) making the project fully portable to any installation. This fork also includes improved class names and error handling for strict error reporting configurations.

Please report any bugs you may find.

###Installation

Add alfmel/pdo-via-oci8 as a requirement to composer.json:

{
    "require": {
        "alfmel/pdo-via-oci8": "*"
    }
}

And then run composer update

Note: lastInsertId function returns the current value of the sequence related to the table where record is inserted. The sequence name should follow this format {$table}.'_'.{$column}.'_seq' for it to work properly.

###Usage

Using the userspace PDO driver is easy. Simply instantiate the alfmel\OCI8\PDO class instead of the PDO class in PHP. Then use the PDO object as you would any other PDO object:

<?php
$pdo = new alfmel\OCI8\PDO($dsn, $username, $password);
$statement = $pdo->prepare("SELECT * FROM MY_TABLE");
$statement->execute();
$result_set = $statement->fetchAll(PDO::FETCH_ASSOC);

###Credits

Special thanks to the two projects that started it all:

And thanks to all the contributors to these projects. Your work is truly appreciated!

统计信息

  • 总下载量: 74
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 0
  • Forks: 17
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-09-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固