How falseclock/dbd-php works
DBD-PHP is a PHP database-driver library whose main workflow is configuring a driver, preparing or executing SQL with bound parameters, and fetching results. The shared DBD runtime also provides CRUD/entity helpers, transactions, caching, and debugging; PostgreSQL is the documented ready driver, alongside MySQL and MSSQL implementations. A separate OData driver handles HTTP-backed entity operations and metadata, with YellowERP as a related integration. Edges follow the README and source-index references; unsampled driver internals and runtime dispatch are not inferred.
Main entry points: DBD.php DBD runtime · Pg.php PostgreSQL driver · OData.php OData driver · Bind.php Typed parameters
Components 22
Database runtime
- DBD runtime
src/DBD.php
Shared services
- Connection config
src/Common/Config.php - Driver options
src/Common/Options.php - Typed parameters
src/Common/Bind.php - Query context
src/Common/Query.php - SQL helpers
src/Helpers/Helper.php - Insert arguments
src/Helpers/InsertArguments.php - Update arguments
src/Helpers/UpdateArguments.php - Cache integration
src/Cache.php - MemCache adapter
src/Cache/MemCache.php - Query debugging
src/Common/Debug.php - Database errors
src/Common/DBDException.php - CRUD definitions
src/Common/CRUD.php
OData integration
- OData driver
src/OData.php - Metadata model
src/Helpers/OData/Metadata.php - Entity type
src/Helpers/OData/EntityType.php - YellowERP integration
src/YellowERP.php
Database drivers
- PostgreSQL driver
src/Pg.php - MySQL driver
src/MySQL.php - MSSQL driver
src/MSSQL.php
Other components
- PHP application
- Database server
Connections 29
- PHP application → PostgreSQL driver: configures and connects
README.md - PHP application → DBD runtime: executes and fetches
README.md - DBD runtime → Connection config: uses configuration
src/DBD.php - DBD runtime → Driver options: uses options
src/DBD.php - DBD runtime → Typed parameters: creates binds
src/DBD.php - DBD runtime → SQL helpers: prepares arguments
src/DBD.php - DBD runtime → Cache integration: uses cache
src/DBD.php - DBD runtime → Query context: records query context
src/Common/Query.php - DBD runtime → Query debugging: measures queries
src/DBD.php - DBD runtime → Database errors: raises errors
src/DBD.php - DBD runtime → CRUD definitions: uses CRUD rules
src/DBD.php - DBD runtime → Insert arguments: builds insert arguments
src/DBD.php - DBD runtime → Update arguments: builds update arguments
src/DBD.php - PostgreSQL driver → Typed parameters: uses typed binds
src/Pg.php - PostgreSQL driver → Connection config: reads configuration
src/Pg.php - PostgreSQL driver → Driver options: reads options
src/Pg.php - PostgreSQL driver → Database server: executes SQL
- MySQL driver → Typed parameters: uses typed binds
src/MySQL.php - MSSQL driver → Typed parameters: uses typed binds
src/MSSQL.php - Cache integration → MemCache adapter: supports adapter
src/Cache/MemCache.php - SQL helpers → Insert arguments: returns arguments
src/Helpers/Helper.php - SQL helpers → Update arguments: returns arguments
src/Helpers/Helper.php - SQL helpers → CRUD definitions: validates query type
src/Helpers/Helper.php - OData driver → Connection config: reads configuration
src/OData.php - OData driver → Typed parameters: uses typed binds
src/OData.php - OData driver → CRUD definitions: uses CRUD rules
src/OData.php - OData driver → Metadata model: parses metadata
src/OData.php - Metadata model → Entity type: models entity types
src/Helpers/OData/Metadata.php - YellowERP integration → OData driver: uses OData driver
src/YellowERP.php