Skip to content

new version, major breacking changes, updated docs/doc-blocks

Compare
Choose a tag to compare
@TheTechsTech TheTechsTech released this 16 Feb 19:48
· 29 commits to v5 since this release
  • 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:

    • The table name with prefix, can be preset/stored with methods tableSetup(name, prefix), or setTable(name), setPrefix(append), if called without presetting, false is returned.
    • This feature will be added to all database CRUD access methods , each method name will have an ing ending added.
  • Removed global functions where table name passed in, use functions as outlined above using preset table names ending with ing.