acgrid/rdb-helper

Deal with differences within PHP RDBMS APIs. Also provide facade class for global access. It does not try to generalize or simplify writing SQL.

v1.3.3 2022-02-19 08:38 UTC

This package is auto-updated.

Last update: 2024-11-19 14:52:37 UTC


README

What to deal with

Tired with PHP's 3 MySQL drivers? Not sure MySQLi or PDO_MySQL?

This wrapper is try to separate client code with ALL driver-specific calls without using any ORM or huge frameworks. It is also procedure-friendly.

Features

  • Generator for iteration, client code can just foreach the result set without using driver-specific fetch methods
  • Automatic bind in-params without specifying data types (WARNING not appreciable if client or server is sensitive with blob and string)
  • Optional facades with multiple connections

TODO

  • Generated documents
  • PDO implementation
  • Does not work on HHVM due to both variadic and by reference arguments are not supported

License

MIT