gpt4 book ai didi

php - 哪个 PHP ORM 与 Oracle 一起工作并且不需要 PDO_OCI?

转载 作者:可可西里 更新时间:2023-11-01 01:08:06 27 4
gpt4 key购买 nike

我想使用 ORM,但遗憾的是我们的数据库 (Oracle) 没有稳定的 PDO。 PHP 页面指出 PDO_OCI 扩展是“实验性的”并警告不要使用它。

似乎 Doctrine 和 Propel 都需要 PDO。其他 Oracle/PHP 商店在生产中使用什么 ORM?

最佳答案

Doctrine 2 supports OCI8 out of the box .

对于 Doctrine 1.2,你必须 implement your own connection class使用 OCI8 extension (Oracle 积极支持的唯一一个)。很有可能,您会在 GitHub 上或通过 googling for it 找到一个自定义类。 .

至于Propel,Propel Newgroups 中有一个条目要求它:

Unfortunately Propel requires PDO and PDOStatement as parameters throughout the API, so the best choice ist to extend PropelPDO and PDOStatement and reimplement the needed methods with oci8.

In theory, you could use Propel 1.2.x, since this uses oci8 rather than pdo_oci.

关于php - 哪个 PHP ORM 与 Oracle 一起工作并且不需要 PDO_OCI?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6733661/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com