Oracle, PDO_OCI vs OCI8

前端 未结 3 1608
北恋
北恋 2020-12-17 19:52

The company I work for currently uses some basic functions to abstract the OCI libraries as a means for DB connectivity. We\'re considering switching to PHP\'s PDO object,

3条回答
  •  既然无缘
    2020-12-17 20:23

    It seems to me that Oracle is not interested in developing a driver for PDO it's developing it's own driver to keep you close to oracle database... to oracle driver... etc. :)

    As far as I've seen there is no problem if you can cope with max. texts of VARCHAR2 of 4000 CHARS. If you need CLOBs (and/or bigger) don't go with PDO_OCI.

    I've created a suite of classes "PDOSurrogate" as a drop in replacement for PDO with Oracle. When PDO is mature enough I can use Refactor->Rename to change it to PDO.

提交回复
热议问题