Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

roojs/PDO_DataObject

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3,708 Commits
3,708 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDO_DataObject

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.

About

PDO replacement for DB_DataObjects

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.