roojs/pdo_dataobject 问题修复 & 功能扩展

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

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

roojs/pdo_dataobject

最新稳定版本:v0.0.4

Composer 安装命令:

composer require roojs/pdo_dataobject

包简介

ORM based on PEAR::DB_DataObject ported for PHP5/7 and PDO

关键字:

README 文档

README

PDO replacement for PEAR's DB_DataObject

Work has been funded by CentralNic Group plc

Manual :

https://roojs.github.io/PDO_DataObject/docs/index.html

In General, this should be API compatible with DB_DataObject, except for

  • getDatabaseConnection(), which is replaced with PDOConnection() - and returns a PDO object, rather than a PEAR DB object.
  • staticGet() - has been removed
  • array of database (like a pool is no longer supported) - use a DB proxy

Other Changes a) chained methods (prefixed with 'c', and throw exceptions) $key_value = DB_DAtaObject::Factory('table') ->cautoJoin() ->cwhere('A=12') ->climit(0,10) ->fetchAll('id','name');

b) Default behaviour is to throw exceptions (compatibility - PEAR::Error is available as a setting)

c) Overloading has been removed - you should be able to wrap the DataObject and add it back in (it's not recommended - causes more problems than it solves)

d) You can configure DataObjects direct by setting PDO_DataObject::$config - (if PEAR is not loaded, then PEAR::getStaticPropery will not be called...)

Commit Log

  • note we use git autocommit on save - so the early history does not have much valuable information - as we near completion, valid commit messages will be used.

统计信息

  • 总下载量: 1.81k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 12
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 12
  • Watchers: 3
  • Forks: 10
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固