This description relates to prototype versions of ADOdb Version 6 and is subject to change
ADOdb Version 6 is a major refactoring (not rewrite) of the main portion of the ADOdb code into a PSR Compliant codebase Its focus is on the main Database Extraction features, as well as Meta Functions, The Data Dictionary, and Session management. All of the additional addons and deprecated drivers have been removed, even though the product is generally backwards compatible with version 5.
The minimum required version of PHP for this product is 8.3
The format of logging messages has changed, to replicate the standard syslog format. This means they can be consumed by log management applications.
ADOdb becomes a PSR level 4 autoload library. An appropriate autoloader class is required.
All methods are now type hinted, both on input and output variables. This allows us to eliminate unexpected return types. In addition, all internal methods are now protected.
By moving the code of most of the methods from the core files into JIT loadable classes, the footprint of ADOdb becomes much smaller
define('ADODB_FETCH_MODE',1); define('ADODB_ASSOC_CASE',0); include 'adodb/adodb.inc.php'; $db = newADOConnection('mysqli'); $db->connect('localhost','user','password','database');
$definitions = new ADOdb\ADOConnectionDefinitions; $definitions->driver = 'mysqli'; $definitions->fetchMode = $definitions::ADODB_FETCH_ASSOC; $definitions->assocCase = $definitions::ADODB_ASSOC_CASE_UPPER; $obj = new ADOdb\connector($definitions); $db = $obj->connect('localhost','user','password','database');
The session management module is now an integrated part of the ADOdb core object. It is now substantially easier to add additional modules such as compression or encryption. The session information can be me unserialized with standard PHP function. The session class itself can be extended much more easily. For more information, see Session Management With V6
The caching service supports connections via Memcache servers or APCu . Connections via disk service are no longer supported. For more information see V6 Caching Services