CUBRID(PDO) - 驱动程序 - PDO驱动
CUBRID(PDO)
简介
PDO_CUBRID 是一个驱动程序,该驱动程序实现PHP数据对象(PDO)接口以允许从PHP访问CUBRID数据库。
Note:当前版本的PDO_CUBRID现在不支持持久连接。
安装
要构建PDO_CUBRID扩展,必须将CUBRID DBMS与PHP安装在同一系统上。PDO_CUBRID是»PECL扩展,因此请按照PECL扩展库安装中的说明安装PDO_CUBRID扩展。发出configure命令以指向您的CUBRID基本目录的位置,如下所示:
$ ./configure --with-pdo-cubrid=/path/to/CUBRID[,shared]The configure command defaults to the value of theCUBRIDenvironment variable.
PECL扩展的DLL当前不可用。参见在 Windows 上构建章节。 Detailed information about installation on Linux and Windows manually, please read build-guide.html in PECL package CUBRID for reference.
Features
Feature | Description |
---|---|
Scrollable cursors | PDO_CUBRID supports scrollable cursors. The default cursor type is forward only, and you can use parameter driver_options in PDO::prepare()to change cursor type. |
Timeout | PDO_CUBRID supports sql statement execution timeout setting; You can use PDO::setAttribute()to set timeout value. |
Autocommit_mode and Transaction | PDO_CUBRID supports both autocommit_mode and transaction, and autocommit_mode is enabled by default. You can use PDO::setAttribute()to change its state. If you use PDO::beginTransaction()to begin a transaction, it will disable autocommit_mode automatically and restore it after PDO::commit()or PDO::rollBack(). Note that before disabling the autocommit_mode, any pending work is automatically committed. |
Multiple SQL Statements | PDO_CUBRID supports Multiple SQL statements. Multiple SQL statements are separated by semicolons(;) |
Schema Information | PDO_CUBRID implements a function PDO::cubrid_schema()to get schema information. |
LOBs | PDO_CUBRID supports BLOB/CLOB data type. The LOB in PDO is represented as a stream, so you can insert LOBs by binding a stream, and get LOBs by reading a stream returned by CUBRID PDO. For example: Insert LOBs in CUBRID PDO |
鹏仔微信 15129739599 鹏仔QQ344225443 鹏仔前端 pjxi.com 共享博客 sharedbk.com
图片声明:本站部分配图来自网络。本站只作为美观性配图使用,无任何非法侵犯第三方意图,一切解释权归图片著作权方,本站不承担任何责任。如有恶意碰瓷者,必当奉陪到底严惩不贷!