Skip to content

ezSQL v3

Compare
Choose a tag to compare
@TheTechsTech TheTechsTech released this 05 Sep 00:38
· 123 commits to v3 since this release

3.08 - Merged fork https://github.com/sjstoelting/ezSQL3 to be current with this repo.

  • Added/Updated PHPunit tests, some marked as incomplete or not fully implemented, SQL drivers not loaded will be skipped.
  • Refactor class code to use spl_autoload_register.
    Simply using require_once "ez_sql_loader.php"; then $database = new database_driver_class;. This will allow multi SQLdb to be loaded if need be.
  • Added methods create_select, insert_select, update, insert, replace, delete, and selecting an alias for select.
    These are part of the new ezQuery SQL builder class. They are shortcut calls, these new methods will create proper SQL statements, from supplied arguments variable or array, prevent injections, then execute guery, in case of selecting execute get_results.
  • Added many additional functions to support ezQuery builder and to easily process SQL prepare statements. Supplied arguments will be replace with necessary placeholder and values added to parameter array.
  • All new methods has been fully PHPunit tested under current supported database systems, and should be able to handle most use cases as is.

Using Composer?
After downloading this release use: composer install
Auto installer: composer require jv2222/ezsql:v3.x-dev
Add to your source code: require 'vendor/autoload.php';

Todo: Implement WHERE IN sub query SELECT and shortcut method calls for the remainder of SQL standard statements.

  • 3.07 - Added the new class ezSQL_mysql to use mysqli. To update existing projects, just change the class you are using from ezSQL_mysql to ezSQL_mysqli. This class is downward compatible to ezSQL_mysql, but is able to use prepared statements.
  • 3.06 - Extended ezSQL_mysql method quick_connect with a charset parameter
  • 3.05 - Extended ez_sql_oracleTNS class, that does now support client site connection pooling
  • 3.04 - Added a new class for Oracle database connection to get rid of TNSNAMES.ORA configuration files
  • 3.03 - Changed error messages, wrong classname used in a messages
  • 3.02 - Improved ezSQL_recordset, array results of rows are faster
  • 3.01 - Added a class for query result handling. The ezSQL_recordset contains methods that behave like fetch_assoc, fetch_row, and fetch_object
  • 3.00 - Changed the code to PHP5, added PHPDoc tags, and added unit tests