Releases: atk4/dsql
1.1.0
This version now officially supports PHP 7.1, as well as adding
optional dependency for SQL formatter (credit to
jdorn). When running
getDebugQuery(true) you'll be getting a well formatted and
justified SQL query.
If after upgrading to 1.1.* branch your application complains
about missing class "SqlFormatter", then your autoloader is
not configured correctly and as a work-around you would need to:
composer require jdorn/sql-formatter
1.0.10
1.0.9
1.0.8
Calling $dsql->set('foo', 4)->set('foo', 10);
now works differently.
It used to record "foo=10" in insert/update record, but now it will
simply add both statement. With MySQL at least the first value is
used.
Calling set() multiple times should behave similarly how adding
multiple conditions on the same field. It's not up to DSQL to
select which value to use.
- Field in set() can now be an expression
- Improved formatting a bit
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
This is now our first stable release. It features clean-ups from 1.0.0:
- selectTemplate() is replaced with mode()
- upadted docs to use $c->query() instead of "new Query()" (better use pattern)
- added examples for having()
- added method reset()
- added method option()
- Expressionable now receives parent $expression as argument
- documented orExpr(), andExpr()
- documented template_* properties
- improved PSR compatibility
- escapeChar is dropped (too generic)
- introduced softEscape and made escape more strict
- improved and cleaned up documentation
- updated REDAME highlighting our USP