All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Now supports DateTimeInterface as a parameter type (#182 by @UniForceMusic)
- Corrected constraint handling (#178 by @UniForceMusic)
- Now supports constraint handling for insert/update (#175 by @UniForceMusic)
- Update testing matrix for newer PHP versions
- Improve identifier escaping (#163 by @donatj)
- Require PHP >= 7.4
- Updated code style, add types where possible
- Add
INSERT IGNOREsupport for MySQL (#106 by @pavarnos)
- Add SQLite engine to support boolean values (#98 by @roomcays)
- Require PHP >= 7.2 (#95)
- Renamed
fntofuncfor PHP 7.4 compatibility (#95)
- Removed support for criteria strings (#95)
- Prevent escaping
*when qualified (#93)
- Allow expressions to be used with
orderBy()(#79 by @SamelVhatargh)
- Allow clearing ordering with
orderBy(null)(#77 by @felixpenrose)
LIMITandOFFSETcould not be reset (#66)
- Allow
fnto be used with parameters as well as identifiers (#57) - Add
addColumnsandaddFrommethods to append onSELECTqueries (#58)
- Boolean and null parameters should be output in SQL (#55)
- Completely new interface
- Improved handling of sub-queries and composition
- Functional and string based criteria builders
- Removal of all static methods
- Requires PHP 7.1 or better
- Normalize
ValueListparameters when passed an array
- Add
Queryinterface to differentiate between queries and statements - Add
AliasandReferenceobjects for additional flexibility
SelectQuerycan now accept a query statement as ajointable
SelectQuerycan now removelimitandorderByby settingnull(@bpolaszek)
- MySQL now supports
limitandorderByfor update and delete queries (@gnoddep)
- Expressions can now be used with
groupBy(@kfreiman)
- Qualified tables are now supported by
InsertQuery
- Statements are now supported as parameters in conditions
- Multi-line inserts are now supported by
InsertQuery
InValuehas been removed in favor ofValueListInsertMultipleQueryhas been removed
- Multi-line insert statements are now supported by
InsertMultipleQuery
SELECTqueries now supportDISTINCT(@luketlancaster)
- Query factory no longer requires an explicit engine
- Expressions can now be used with
ORDER BY(@MelleB)
- Replacement of boolean and null values would cause PDO to error on execute (@MelleB)
- Compiling
INSERTandUPDATEqueries multiple times could produce different SQL
- Expressions can now be used as values for
INSERTandUPDATEqueries
- Invalid SQL would be produced by Postgres queries when no RETURNING values were defined
- Multiple JOIN statements are now combined correctly (@kfreiman)
- PHP 5.x was failing to assign query factory engine correctly
- PHP 5.x build scripts
Initial release.