You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
commits from branch v5, new version, major breaking changes, updated docs/doc-blocks
- 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:
```php
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`.
***A class to make it very easy to deal with database connections.***
12
12
13
-
This is [__version 4__](https://github.com/ezSQL/ezsql/tree/v4) that has many modern programming practices in which will break users of version 3.
13
+
This is [__Version 5__](https://github.com/ezSQL/ezsql/tree/v5) which will break users of **version 4**.
14
+
15
+
Mainly by:
16
+
17
+
- The use of `namespace` in the `global` functions **ezFunctions.php** file.
18
+
Usage of the **global** functions will require the user to begin a `.php` file something like:
19
+
20
+
```php
21
+
use function ezsql\functions\where;
22
+
// Or
23
+
use function ezsql\functions\{
24
+
getInstance,
25
+
selecting,
26
+
inserting,
27
+
};
28
+
```
29
+
30
+
- Class properties that was accessible by magic methods `get/set`, now PSR 1 camelCase.
31
+
- Renamed `select` of `ez_mysqli` to `dbSelect`.
32
+
- Renamed class method and behavior of `selecting` to `select`.
33
+
- `selecting`, and new `inserting` methods, can be called without table name, only the other necessary parameters:
34
+
- 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.
35
+
- This **feature** will be added to **all** database *CRUD* access methods , each method name will have an `ing` ending added.
36
+
- Removed global functions where `table` name passed in, use functions using preset table names ending with `ing`.
37
+
38
+
[__Version 4__](https://github.com/ezSQL/ezsql/tree/v4) has many modern programming practices in which will break users of version 3.
14
39
15
40
[__Version 3__](https://github.com/ezSQL/ezsql/tree/v3) broke version 2.1.7 in one major way, it required *PHP 5.6*. Which drop mysql extension support, other than that, nothing as far using the library was changed, only additional features.
16
41
@@ -115,7 +140,7 @@ prepareOff(); // When off shortcut SQL Methods calls will use vendors escape rou
0 commit comments