Skip to content
This repository has been archived by the owner on Nov 26, 2022. It is now read-only.

Releases: selective-php/database

3.2.0

26 Nov 12:32
Compare
Choose a tag to compare

Changes

  • Require PHP 8

Note: This is the last release of this package.

3.1.0

28 Dec 15:54
Compare
Choose a tag to compare

Added

  • Add PHP 8.0 support
  • Add internal type declarations

Changed

  • Schema::getTableSchemaId throws JsonException
  • Optimize tests
  • Update Github Action build

Deprecated

  • Deprecate Schema::setDatabase, use Schema::useDatabase instead.
  • Deprecate Schema::getTableSchemaId, no replacement.

Removed

  • Remove support for PHP 7.1, PHP 7.2 and PHP 7.3

Fixed

  • Fix CS

Security

  • None

3.0.0

11 May 21:22
Compare
Choose a tag to compare

Added

  • Support for MySQL 8

Changed

  • Change namespace from Odan to Selective

Deprecated

  • None

Removed

  • Support for PHP 7.1
  • Columns with variable arguments. Use arrays instead e.g. ['id', 'first_name']
  • Columns with AS for alias strings. Use arrays instead e.g. ['alias' => 'fieldname']

Fixed

  • Column values with raw values
  • Fixed schema handling for MySQL 8

Security

  • None

2.0.0

18 Jul 14:41
Compare
Choose a tag to compare

Breaking Changes

  • Decoupled from PDO #9
  • Removed Compression class #6
  • Removed Schema::clearTable method #5
  • Removed Connection::queryMapColumn
  • Removed Connection::queryValue
  • Removed Connection::queryValues

Changes

  • Support for PHP 7.2+
  • Type declarations and return types everywhere #8

New Features

SelectQuery

  • Add column with alias as array (['alias' => 'field']) #7

1.5.0

15 May 20:01
21ddf0a
Compare
Choose a tag to compare
  • Added raw method to select query

1.4.0

13 May 13:49
Compare
Choose a tag to compare
  • Added array support for columns. Example: ->columns(['field1', 'field2'])
  • Added new function builder (count, min, max, avg, sum, now)
  • Updated readme

1.3.0

29 Apr 21:08
Compare
Choose a tag to compare
  • Added whereRaw() and orWhereRaw()
  • Fixed first closure conditions

1.2.2

11 Apr 20:27
Compare
Choose a tag to compare
Update path

1.2.0

09 Mar 10:17
Compare
Choose a tag to compare
  • Changed the second parameter of leftJoinRaw and joinRaw to string

1.1.0

05 Mar 23:32
Compare
Choose a tag to compare
  • Added advanced join clauses
  • Removed crossJoin()