PHP class to make interacting with a database ridiculusly easy
The use of namespace
in the global
functions ezFunctions.php file.
Usage of the global functions will require the user to begin a .php
file something like:
use function ezsql\functions\where;
// Or
use function ezsql\functions\{
getInstance,
selecting,
inserting,
};
Class properties that was accessible by magic methods get/set
, now PSR 1 camelCase.
update class libraries and tests to match PSR 1, but still backwards with previous way.
Renamed select
of ez_mysqli
to dbSelect
.
Renamed class method and behavior of selecting
to select
.
selecting
, and new inserting
methods, can be called without table name, only the other necessary parameters:
tableSetup(name, prefix), or setTable(name), setPrefix(append)
, if called without presetting, false
is returned.ing
ending added.Removed global functions where table
name passed in, use functions as outlined above using preset table names ending with ing
.
**@**
silenced errors which this library used to return **false**
instead, that is not no longer possible with PHP 8where()
was not handling additional _OR
conditionswhere()
conditional grouping()
debugOn()
and debugOff()
methods for simpler way to turn On/Off echoing output for varDump()