Skip to content

Releases: woohoolabs/larva

0.7.3

23 Jun 07:49
0.7.3
754b777
Compare
Choose a tag to compare

ADDED:

  • Support for PHP 8
  • Support for PHPUnit 9

0.7.2

04 Oct 14:24
0.7.2
f286bad
Compare
Choose a tag to compare

FIXED:

  • Lazy initialization of some object properties

0.7.1

04 Oct 12:57
0.7.1
778d6e6
Compare
Choose a tag to compare

CHANGED:

  • Improved PSR-12 conformance
  • Added more type declarations

0.7.0

21 Aug 12:09
0.7.0
fcd38aa
Compare
Choose a tag to compare
0.7.0 Pre-release
Pre-release

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

21 Dec 10:03
0.6.0
2f36d34
Compare
Choose a tag to compare
0.6.0 Pre-release
Pre-release

ADDED:

  • SelectQueryBuilderInterface::orderByAttribute and SelectQueryBuilderInterface::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

12 Sep 07:51
0.5.0
a9efc1b
Compare
Choose a tag to compare

ADDED:

  • Support for TRUNCATE
  • Support for UNION in SELECT 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 to WoohooLabs\Larva\Driver\MySql to match its filesystem path
  • MasterSlaveConnection::getLastInsertedId didn't use the $name parameter

0.4.0

05 Mar 08:11
Compare
Choose a tag to compare

ADDED:

  • SelectQueryBuilder::selectExpressions() and SelectQueryBuilder::selectCount() methods

CHANGED:

  • SelectQueryBuilder::select() was renamed to SelectQueryBuilder::selectColumns()
  • Connection instantiation became more straightforward

FIXED:

  • Bool values are now casted to int when using prepared statements
  • Return type of SelectQueryBuilder::fetchColumn() became mixed 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

24 Feb 09:03
Compare
Choose a tag to compare
0.3.1 Pre-release
Pre-release

FIXED:

  • Transaction handling

0.3.0

12 Feb 22:50
Compare
Choose a tag to compare
0.3.0 Pre-release
Pre-release

ADDED:

  • SelectQueryBuilder::lockForShare() and SelectQueryBuilder::lockForUpdate()
  • Support for exists/any/some/all conditions

CHANGED:

  • Conditions can be specified via ConditionBuilder instances instead of Closures
  • Additional conditions can now be specified via ConditionBuilder::addConditionGroup()

REMOVED:

  • ConditionBuilder::subselect() method
  • MySqlConditionsTranslator class

FIXED:

  • Many conditions didn't get translated by the MySQL driver

0.2.0

02 Feb 23:43
Compare
Choose a tag to compare
0.2.0 Pre-release
Pre-release

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() and selectColumn() to SelectQueryBuilder to make it easier to build SELECT expressions

CHANGED:

  • Renamed SelectQueryBuilder::fields() to SelectQueryBuilder::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