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.
- Add
INSERT IGNORE
support for MySQL (#106 by @pavarnos)
- Add SQLite engine to support boolean values (#98 by @roomcays)
- Require PHP >= 7.2 (#95)
- Renamed
fn
tofunc
for 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)
LIMIT
andOFFSET
could not be reset (#66)
- Allow
fn
to be used with parameters as well as identifiers (#57) - Add
addColumns
andaddFrom
methods to append onSELECT
queries (#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
ValueList
parameters when passed an array
- Add
Query
interface to differentiate between queries and statements - Add
Alias
andReference
objects for additional flexibility
SelectQuery
can now accept a query statement as ajoin
table
SelectQuery
can now removelimit
andorderBy
by settingnull
(@bpolaszek)
- MySQL now supports
limit
andorderBy
for 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
InValue
has been removed in favor ofValueList
InsertMultipleQuery
has been removed
- Multi-line insert statements are now supported by
InsertMultipleQuery
SELECT
queries 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
INSERT
andUPDATE
queries multiple times could produce different SQL
- Expressions can now be used as values for
INSERT
andUPDATE
queries
- 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.