v6:code_refactoring
Table of Contents
ADOdb v6 Code Refactoring
Namespaces / Directory structure
With PSR-4, namespace and directory structures must match. This section covers possible approaches.
This is my initial idea, to be discussed and refined as I try to implement it.
- ADOdb
- drivers
- recordsets
- datadict
- …
Source files
Document how files will be reorganized.
| v5 file | v6 file(s) |
|---|---|
Method Names
| Old Name | New Name |
|---|---|
| insert_id | getLastInsertId |
| affected_rows | getAffectedRowCount |
Database Drivers
This section documents the changes in database drivers: obsolescence, consolidations, etc.
The table below needs to be reviewed and completed based on information in the v5 Reference Manual
| database | v5 driver(s) | v6 driver | Notes |
|---|---|---|---|
| PostgreSQL | postgres, postgres64, postgres7, postgres8, postgres9 | postgres | Support for PostgreSQL < 9 ended on July 20141). All drivers are consolidated into one |
| MySQL | mysql | – | Driver no longer supported by PHP |
| mysqli | mysqli | ||
| SQLite | sqlite | – | PHP Driver removed in PHP 5.4 |
| sqlite3 | sqlite3 |
1)
See PostgreSQL release support policy
v6/code_refactoring.txt · Last modified: by 127.0.0.1
