Releases: woohoolabs/larva
Releases · woohoolabs/larva
0.7.3
0.7.2
FIXED:
- Lazy initialization of some object properties
0.7.1
CHANGED:
- Improved PSR-12 conformance
- Added more type declarations
0.7.0
CHANGED:
- Increased minimum PHP version requirement to 7.4 as property type declarations were added
- Updated dev dependencies
- Improved static analysis
REMOVED:
AbstractPdoConnection::create()
0.6.0
ADDED:
SelectQueryBuilderInterface::orderByAttribute
andSelectQueryBuilderInterface::orderByExpression
methods
CHANGED:
- Require PHPUnit 7.0 minimally for running tests
- Do not use the
NO_AUTO_CREATE_USER
mode by default because it was removed in MySQL 8.0 - Apply the Woohoo Labs. Coding Standard
REMOVED:
SelectQueryBuilderInterface::orderBy
method
FIXED:
- Fatal error when
AbstractPdoConnection::fetch()
returns an empty result set - Fatal error on PHP 7.1 because of incompatible declarations
0.5.0
ADDED:
- Support for
TRUNCATE
- Support for
UNION
inSELECT
queries
CHANGED:
- Increased minimum PHP version requirement to 7.1
- Added missing type declarations
- Translator objects are loaded lazily
- SQL statements aren't pretty printed
- Updated development docker images
FIXED:
- Subqueries in
FROM
clauses will be translated properly when using the MySQL driver - Renamed
WoohooLabs\Larva\Driver\Mysql
namespace toWoohooLabs\Larva\Driver\MySql
to match its filesystem path MasterSlaveConnection::getLastInsertedId
didn't use the$name
parameter
0.4.0
ADDED:
SelectQueryBuilder::selectExpressions()
andSelectQueryBuilder::selectCount()
methods
CHANGED:
SelectQueryBuilder::select()
was renamed toSelectQueryBuilder::selectColumns()
- Connection instantiation became more straightforward
FIXED:
Bool
values are now casted toint
when using prepared statements- Return type of
SelectQueryBuilder::fetchColumn()
becamemixed
so that it can now be used to also retrieve numbers - Adding condition groups via
ConditionBuilder::addConditionGroup()
when originally there was no condition - Subselect statements are now translated properly when using the MySQL driver
- Columns in the
SELECT
clause are now translated properly when using the MySQL driver
0.3.1
FIXED:
- Transaction handling
0.3.0
ADDED:
SelectQueryBuilder::lockForShare()
andSelectQueryBuilder::lockForUpdate()
- Support for exists/any/some/all conditions
CHANGED:
- Conditions can be specified via
ConditionBuilder
instances instead ofClosure
s - Additional conditions can now be specified via
ConditionBuilder::addConditionGroup()
REMOVED:
ConditionBuilder::subselect()
methodMySqlConditionsTranslator
class
FIXED:
- Many conditions didn't get translated by the MySQL driver
0.2.0
ADDED:
- Support for using configuration file/array for connections via the
ConnectionFactory
- Support for master/slave connections
- Possibility to retrieve the connection from query builders
- Support for locking in
SELECT
statement selectExpression()
andselectColumn()
toSelectQueryBuilder
to make it easier to buildSELECT
expressions
CHANGED:
- Renamed
SelectQueryBuilder::fields()
toSelectQueryBuilder::select()
FIXED:
MySqlPdoConnection
doesn't expect the$driver
constructor parameter anymore- Parentheses are added when using the
ON
clause with the MySQL driver - Backtick
JOIN
aliases when using the MySQL driver