v2.2
版本发布时间: 2015-07-28 15:07:46
ThingEngineer/PHP-MySQLi-Database-Class最新发布版本:v2.9.3(2019-08-24 17:32:24)
Hey guys,
Seems its time to tag new release. Lot of work were done. Thank you for all your bugs posted. Next release hopefully will bring insert on duplicate update support in Mysqli and couple new relation type. Keep sending us pull requests and bug reports.
Thank you.
Changelog:
MysqliDb
- Allow prefix configuration from constructor ('prefix' array key)
- MysqliDb do not connect to mysql on object creation. Connection is established only before actual get()/insert()/update()/ping()/etc
- Added replace() functionality
- rawQuery() query filtering is disabled by default
- Added new query option MYSQLI_NESTJOIN to returned joined fields in separate array/object (like $product->user->id);
- Added ArrayBuilder(), ObjectBuilder(), JsonBuilder() to set mysqlidb return type.
- Fix for out of memory bug caused by long* data fields
- insert() now using setQueryOptions () options as well
- Corrected processing of a NULL and 0 values. Missing parameter wont cause condition to be ignored
- orderBy() fix for prefix usage.
DbObject
- Added caching for relation results
- insert() and save () now adds primary key property to the object after save
- Added JsonBuilder() to set json return type
- Bugfix for cases with prefix usage
- New table() method to avoid simple models creation