Skip to content

Releases: readdle/fqdb

PHP8.1: Fixed compatibility issues with \JsonSerializable

06 Sep 12:38
Compare
Choose a tag to compare

Weaken symfony/event-dispatcher dependecy in favor of symfony/event-dispatcher-contracts

21 Mar 08:13
ca02759
Compare
Choose a tag to compare

Weakened dependency "symfony/event-dispatcher" in favor of "symfony/event-dispatcher-contracts".

POTENTIAL BC: If you're using "symfony/event-dispatcher" as a dispatcher, please install it manually composer require symfony/event-dispatcher

Some compatibility with PHP 8.1

23 Nov 09:53
214ac08
Compare
Choose a tag to compare

No actual behavior changes since 4.0.3

3.1.0

11 Jan 20:21
Compare
Choose a tag to compare

Update symfony/dispatcher to >=4.3 <5.0
For more details see https://symfony.com/blog/new-in-symfony-4-3-simpler-event-dispatching

Introduced transaction and query executing events

12 Jul 14:52
9bed6d1
Compare
Choose a tag to compare

New events are introduced:

  • DeleteStatementPrepared
  • UpdateStatementPrepared
  • TransactionBegan
  • TransactionCommitted
  • TransactionRolledBack

Also set|getBeforeUpdateHandler and set|getBeforeDeleteHandler are removed and could be replaced via events.

HHVM was removed from trevis, cause of it is no longer supported by composer
composer/composer#8127

Introduced Ability to use Custom Connectors

17 Aug 09:31
4ef2e8f
Compare
Choose a tag to compare
// New instantiate method of FQDB
// example: mysql:host=127.0.0.1;dbname=database;charset=utf8mb4
$fqdb = FQDBProvider::dbWithDSN($dsn, $user, $password);

// to use a custom connector you can register it before instantiating the FQDB
\Readdle\Database\FQDB::registerConnector(\Readdle\Database\ConnectorInterface $connector);
$fqdb = new \Readdle\Database\FQDB($optionSupportedByYourConnector);

New method has been implemented

13 Mar 09:47
Compare
Choose a tag to compare

queryTableGenerator method has been implemented.
Usage example:
$result = $fqdb->queryTableGenerator("SELECT * FROM users");

New method has been implemented

16 May 08:09
Compare
Choose a tag to compare

queryHash method has been implemented
Usage example:
$result = $fqdb->queryHash("SELECT id, status FROM users");
//$result output (where key is id, and value is status)

[
   '23' => 'active',
   '2' => 'suspended'
]

FQDB 2.0

05 Feb 11:30
Compare
Choose a tag to compare
  • Returning only array when calling functions which are working with collections:

BC:
<v2.0:

/**
* @return array|false
*/
public function queryTable($sql, $options);
public function queryVector($sql, $options);
public function queryObjArray($sql, $options);

v2.0:

/**
* @return array
*/
public function queryTable($sql, $options);
public function queryVector($sql, $options);
public function queryObjArray($sql, $options);  

parse .my.cnf improvements

19 Jan 11:27
Compare
Choose a tag to compare
  • FQDBProvider::parseMyCnf() now parses host and database parameters